m3 icon indicating copy to clipboard operation
m3 copied to clipboard

[dbnode] use index in shard for FetchBlocksMetadata pagination

Open Antanukas opened this issue 2 years ago • 0 comments

What this PR does / why we need it:

Fixes # racy fetchActiveBlocksMetadata pagination where due to race during cluster resize (peers bootstrapping) some series could have been skipped from the active block.

Special notes for your reviewer:

Previously Index field would be set outside the lock that might cause order in the list mismatch the Index causing some series to be missed when using cursor based pagination.

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

Antanukas avatar Dec 02 '23 13:12 Antanukas