From dcb53054e3413161730717936f542bf78bdd815d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Massot?= Date: Wed, 28 Aug 2024 17:42:22 +0200 Subject: [PATCH] Disable control plane check for searcher. --- quickwit/quickwit-serve/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickwit/quickwit-serve/src/lib.rs b/quickwit/quickwit-serve/src/lib.rs index fa8df1d9237..2b5b7f123f9 100644 --- a/quickwit/quickwit-serve/src/lib.rs +++ b/quickwit/quickwit-serve/src/lib.rs @@ -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