Skip to content

Remove secondary search queue#75

Merged
rdettai-sk merged 1 commit into
sekoiafrom
remove-secondary-search-queue
Jul 3, 2026
Merged

Remove secondary search queue#75
rdettai-sk merged 1 commit into
sekoiafrom
remove-secondary-search-queue

Conversation

@rdettai-sk

Copy link
Copy Markdown
Collaborator

Description

We don't need this, SRTF has proved more efficient and faster. We prefer to stay close from upstream.

How was this PR tested?

If CI passes we should be good.

Copilot AI review requested due to automatic review settings July 3, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Removes the “secondary” search queue path and its associated configuration/metrics, simplifying search scheduling and timeout behavior to a single queue (SRTF-driven), and removing the “read-only” split-cache touch behavior that previously avoided registering download candidates.

Changes:

  • Eliminate secondary/broad-search queue selection (permits + timeouts) and related plumbing across leaf search execution.
  • Simplify Prometheus metrics by removing the queue label and secondary-task gauges/counters.
  • Remove secondary-queue configuration knobs from SearcherConfig, and simplify split-cache APIs by dropping read_only parameters.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
quickwit/quickwit-storage/src/split_cache/split_table.rs Simplifies touch by removing read_only gating when registering download candidates.
quickwit/quickwit-storage/src/split_cache/mod.rs Updates split-cache wrapper + access path to match the new touch/API shape.
quickwit/quickwit-search/src/tests.rs Updates tests for removed broad/secondary-search boolean parameter.
quickwit/quickwit-search/src/service.rs Removes broad-search timeout/queue selection; always uses primary timeout and single leaf-search path.
quickwit/quickwit-search/src/metrics.rs Removes queue label + secondary metrics; converts split-duration metric from HistogramVec to Histogram.
quickwit/quickwit-search/src/metrics_trackers.rs Updates leaf-search request metric labeling after dropping queue label.
quickwit/quickwit-search/src/list_terms.rs Updates index opening + metrics timing to match simplified split-cache + metrics APIs.
quickwit/quickwit-search/src/list_fields.rs Updates call sites to match removed boolean parameter.
quickwit/quickwit-search/src/leaf.rs Removes is_broad_search branching (permits, split-cache mode, metrics label).
quickwit/quickwit-search/src/fetch_docs.rs Updates call site to match removed boolean parameter.
quickwit/quickwit-config/src/node_config/serialize.rs Updates config parsing/serialization tests after removing secondary config fields.
quickwit/quickwit-config/src/node_config/mod.rs Removes secondary-queue config fields from SearcherConfig.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread quickwit/quickwit-storage/src/split_cache/mod.rs Outdated
Comment on lines 289 to 293
#[serde(default = "SearcherConfig::default_request_timeout_secs")]
request_timeout_secs: NonZeroU64,
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_timeout_policy: Option<StorageTimeoutPolicy>,

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.

we stopped using secondary_* for a while now

@rdettai-sk rdettai-sk force-pushed the remove-secondary-search-queue branch from b132cb2 to 9aed702 Compare July 3, 2026 14:23
@rdettai-sk rdettai-sk merged commit 33bc716 into sekoia Jul 3, 2026
3 checks passed
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.

3 participants