neofs-node icon indicating copy to clipboard operation
neofs-node copied to clipboard

SN starts refusing to save some objects after `MaxObjectSize` increase

Open cthulhu-rider opened this issue 6 months ago • 1 comments

MaxObjectSize network setting limits payload size of physically stored NeoFS objects. Storage nodes deny bigger objects. By default, value is 64M. It may be increased by the IR

Expected Behavior

objects not bigger than the current setting are always accepted

Current Behavior

objects with payload bigger than the starttime limit are denied after config increase in runtime

Possible Solution

listen to net config changes and tune server according to it

Steps to Reproduce (for bugs)

see test. Briefly:

  1. start network with L1 = 64M object payload limit
  2. increase the limit to any L2 > L1
  3. try to store object of any size > L1

Context

https://github.com/nspcc-dev/neofs-node/blob/450c4e5ed85f77dc77a13625337d71f7d97fa9ef/cmd/neofs-node/grpc.go#L60-L61

Regression

no

Your Environment

cthulhu-rider avatar Aug 08 '24 06:08 cthulhu-rider