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?:
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 thelist
mismatch theIndex
causing some series to be missed when using cursor based pagination.Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: