Fix object payload size limiter #293

Merged
fyrchik merged 1 commit from aarifullin/frostfs-sdk-go:fix/object_transformer into master 2024-11-07 12:11:20 +00:00

1 commit

Author SHA1 Message Date
5f962e0465 [#293] object: Fix payload size limiter
All checks were successful
DCO / DCO (pull_request) Successful in 1m0s
Tests and linters / Tests (pull_request) Successful in 1m16s
Tests and linters / Lint (pull_request) Successful in 1m56s
* Sending empty chunks by `writeChunk` should not release new
  objects as this doesn't change `payloadSizeLimiter` internal
  state.
* This also fixes the bug with patcher when an offset of a patch
  equals to `MaxSize` - `payloadSizeLimiter` releases object again
  although state is the same. This led to error because EC-encoder
  receieved empty payload and couldn't not process it.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-11-06 11:48:31 +03:00