sql/schemachanger: apply admission control to index merging #113705
Labels
branch-release-23.2
Used to mark GA and release blockers and technical advisories for 23.2
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
GA-blocker
O-23.2-scale-testing
issues found during 23.2 scale testing
O-testcluster
Issues found or occurred on a test cluster, i.e. a long-running internal cluster
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
Previously, admission control was only applied to the scan portion of the index merge operation, and the correct flag was never passed on the actual writes done by this operation. Update this code to pass the same flags as the scan.
The existing scan sets a priority flag:
cockroach/pkg/sql/backfill/mvcc_index_merger.go
Line 301 in 299f41e
The actual merges themselves don't:
https://github.com/cockroachdb/cockroach/blob/299f41ea88bdcf0d82295e8655dc7d948f38f57a/pkg/sql/backfill/mvcc_index_merger.go#L351C15-L351C15
In our scale testing we are seeing performance tank during the merge phase.
Jira issue: CRDB-33117
The text was updated successfully, but these errors were encountered: