Skip to content

Commit e2fb196

Browse files
authored
Disable control plane check for searcher. (#5360)
1 parent 60368df commit e2fb196

File tree

1 file changed

+4
-1
lines changed
  • quickwit/quickwit-serve/src

1 file changed

+4
-1
lines changed

quickwit/quickwit-serve/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ async fn start_control_plane_if_needed(
338338
balance_channel_for_service(cluster, QuickwitService::ControlPlane).await;
339339

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

344347
if !balance_channel

0 commit comments

Comments
 (0)