Skip to content

Commit

Permalink
Disable control plane check for searcher. (#5360)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassot authored Aug 28, 2024
1 parent 60368df commit e2fb196
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quickwit/quickwit-serve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ async fn start_control_plane_if_needed(
balance_channel_for_service(cluster, QuickwitService::ControlPlane).await;

// If the node is a metastore, we skip this check in order to avoid a deadlock.
if !node_config.is_service_enabled(QuickwitService::Metastore) {
// If the node is a searcher, we skip this check because the searcher does not need to.
if !(node_config.is_service_enabled(QuickwitService::Metastore)
|| node_config.is_service_enabled(QuickwitService::Searcher))
{
info!("connecting to control plane");

if !balance_channel
Expand Down

0 comments on commit e2fb196

Please sign in to comment.