Verify that there are no empty OIDs in the constructed index file, as
empty payloads can result in improperly set attributes, leading to empty
OIDs being added to the index file.
Close#3628
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
In case of uploading retry already drained bin buffer is returned in
`bw.Bytes`, which leads to empty block uploading.
Close#3630
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Miscalculation leads to negative values in errors:
```
2024-10-17 11:26:56.790 failed to fetch the latest missing block index
from container: search of index files failed for batch with indexes
from -260000 to -250000: error during object IDs iteration: context
deadline exceeded
```
Close#3621
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>