Skip to content

Create compaction planner service stub; wire up serving layer#6269

Open
nadav-govari wants to merge 3 commits intonadav/feature-split-mergesfrom
nadav/pr2
Open

Create compaction planner service stub; wire up serving layer#6269
nadav-govari wants to merge 3 commits intonadav/feature-split-mergesfrom
nadav/pr2

Conversation

@nadav-govari
Copy link
Copy Markdown
Collaborator

Description

A lot of boilerplate in this PR.

Adds the compaction service gRPC layer. It's a stub.

Initializes the gRPC server for the janitor if an env var is set. On indexers, try to connect to this server: if successful, indexing pipelines dont start a merge service. If its not, for any reason, they do.

The rest is hooking this up and adding tests for the various logic added.

How was this PR tested?

Tested with a local quickwit cluster, and by adding unit and integration tests.

@nadav-govari nadav-govari changed the base branch from main to nadav/feature-split-merges April 6, 2026 19:26
Comment on lines +293 to +296
if node_config.is_service_enabled(QuickwitService::Janitor) {
info!("compaction service enabled on this node");
return Some(CompactionServiceClient::new(StubCompactionService));
}
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.

The janitor doesnt care -only indexers do.

"compaction service is enabled but no janitor node was found in the cluster, falling \
back to local merge pipelines"
);
return None;
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.

Consider failing here

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