SN starts refusing to save some objects after MaxObjectSize increase #1247

Open
opened 2025-12-28 17:22:19 +00:00 by sami · 1 comment
Owner

Originally created by @cthulhu-rider on GitHub (Aug 8, 2024).

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

nspcc-dev/neofs-node@450c4e5ed8/cmd/neofs-node/grpc.go (L60-L61)

Regression

no

Your Environment

Originally created by @cthulhu-rider on GitHub (Aug 8, 2024). [`MaxObjectSize`](https://github.com/nspcc-dev/neofs-api/blob/4bd8b4da96c810e69a9a1336adb5e4e84bac62eb/netmap/types.proto#L304-L305) 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](https://rest.fs.neo.org/HXSaMJXk2g8C14ht8HSi7BBaiYZ1HeWh2xnWPGQCg4H6/1795-1723053724/index.html#suites/44e11ced39071e8d0cfc11c5b94622ba/610abeaabb96d590/). 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 * Version used: [`neofs-node@v0.42.1`](https://github.com/nspcc-dev/neofs-node/releases/tag/v0.42.1)
Author
Owner

@roman-khimov commented on GitHub (Aug 26, 2024):

Please upstream your grpc changes and let's see how it goes there.

@roman-khimov commented on GitHub (Aug 26, 2024): Please upstream your grpc changes and let's see how it goes there.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-node#1247
No description provided.