Skip to content

Commit b12bcc1

Browse files
committed
Revert not using the proxied metastore for the search service
1 parent 393476e commit b12bcc1

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Diff for: quickwit/quickwit-metastore/src/metastore/control_plane_metastore.rs

-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ impl MetastoreService for ControlPlaneMetastore {
8787
Ok(response)
8888
}
8989

90-
// Technically, proxying this call via the control plane is not necessary at the moment because
91-
// it does not modify attributes the control plane cares about (retention policy, search
92-
// settings). However, it would be easy to forget to do so when we add the ability to update the
93-
// doc mapping or merge policy of an index, so we've already set up the proxy here since calling
94-
// `update_index` is very infrequent anyway.
9590
async fn update_index(
9691
&self,
9792
request: UpdateIndexRequest,

Diff for: quickwit/quickwit-serve/src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ pub async fn serve_quickwit(
493493
// Set up the "control plane proxy" for the metastore.
494494
let metastore_through_control_plane = MetastoreServiceClient::new(ControlPlaneMetastore::new(
495495
control_plane_client.clone(),
496-
metastore_client.clone(),
496+
metastore_client,
497497
));
498498

499499
// Setup ingest service v1.
@@ -604,7 +604,9 @@ pub async fn serve_quickwit(
604604
let (search_job_placer, search_service) = setup_searcher(
605605
&node_config,
606606
cluster.change_stream(),
607-
metastore_client.clone(),
607+
// search remains available without a control plane because not all
608+
// metastore RPCs are proxied
609+
metastore_through_control_plane.clone(),
608610
storage_resolver.clone(),
609611
searcher_context,
610612
)

0 commit comments

Comments
 (0)