Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pageserver): extend split job key range to the end (#10484)
## Problem Not really a bug fix, but hopefully can reproduce #10482 more. If the layer map does not contain layers that end at exactly the end range of the compaction job, the current split algorithm will produce the last job that ends at the maximum layer key. This patch extends it all the way to the compaction job end key. For example, the user requests a compaction of 0000...FFFF. However, we only have a layer 0000..3000 in the layer map, and the split job will have a range of 0000..3000 instead of 0000..FFFF. This is not a correctness issue but it would be better to fix it so that we can get consistent job splits. ## Summary of changes Compaction job split will always cover the full specified key range. Signed-off-by: Alex Chi Z <chi@neon.tech>
- Loading branch information
92d95b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7521 tests run: 7125 passed, 0 failed, 396 skipped (full report)
Flaky tests (7)
Postgres 17
test_compute_pageserver_connection_stress
: debug-x86-64test_metrics_normal_work
: release-x86-64, debug-x86-64Postgres 16
test_metrics_normal_work
: release-x86-64Postgres 15
test_metrics_normal_work
: release-x86-64Postgres 14
test_metrics_normal_work
: release-x86-64, release-arm64Code coverage* (full report)
functions
:33.5% (8495 of 25340 functions)
lines
:49.3% (71391 of 144707 lines)
* collected from Rust tests only
92d95b0 at 2025-01-23T02:51:34.620Z :recycle: