Skip to content

Exclude known split ids; double merge concurrency#6452

Merged
nadav-govari merged 1 commit into
nadav/feature-split-mergesfrom
nadav/pr16
May 20, 2026
Merged

Exclude known split ids; double merge concurrency#6452
nadav-govari merged 1 commit into
nadav/feature-split-mergesfrom
nadav/pr16

Conversation

@nadav-govari
Copy link
Copy Markdown
Collaborator

Description

Better utilize resources - semaphore for merge executions, everything else is IO. It allows us to run interleave pipelines better and get more net merges out with less resources. Will make this configurable in a future PR.

Also added the list of tracked splits to exclude from the metastore scan. This is necessary because before, we'd always fetch the 5000 oldest splits that are not yet mature. At a certain point we end up retrieving all of the splits that make up pending L3+ merges, and since those are already tracked, it's keeping us from scanning newer splits that are better candidates to be merged.

How was this PR tested?

Describe how you tested this PR.

compaction_root_directory: TempDirectory,
) -> Self {
let num_pipeline_slots = max_concurrent_merge_executions * 2;
let pipelines = (0..num_pipeline_slots).map(|_| None).collect();
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vec macro

Base automatically changed from nadav/pr15 to nadav/feature-split-merges May 20, 2026 18:09
@nadav-govari nadav-govari merged commit e2e5d6a into nadav/feature-split-merges May 20, 2026
4 checks passed
@nadav-govari nadav-govari deleted the nadav/pr16 branch May 20, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant