Skip to content

Conversation

blathers-crl[bot]
Copy link

@blathers-crl blathers-crl bot commented Oct 10, 2025

Backport 1/1 commits from #155261 on behalf of @mw5h.


The MergeIndexes() method of the IndexBackfillerMergePlanner has a check to see if there are any spans to merge before proceeding with building the plan for the merge. Previously the check for this was checking whether there were any elements in spansToDo, which is allocated to have one entry per source index ID, causing the length check to be vacuously true. The logic probably meant to to check the length of the spans list for each individual source index ID, which this patch puts into place.

Epic: none
Release note: None


Release justification:

The MergeIndexes() method of the IndexBackfillerMergePlanner has a check
to see if there are any spans to merge before proceeding with building
the plan for the merge. Previously the check for this was checking
whether there were any elements in spansToDo, which is allocated to have
one entry per source index ID, causing the length check to be vacuously
true. The logic probably meant to to check the length of the spans list
for each individual source index ID, which this patch puts into place.

Epic: none
Release note: None
@blathers-crl blathers-crl bot force-pushed the blathers/backport-release-25.3-155261 branch from 6ed32f5 to 7d7be25 Compare October 10, 2025 19:06
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Oct 10, 2025
@blathers-crl blathers-crl bot requested a review from fqazi October 10, 2025 19:06
Copy link
Author

blathers-crl bot commented Oct 10, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added the backport Label PR's that are backports to older release branches label Oct 10, 2025
Copy link
Author

blathers-crl bot commented Oct 10, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants