File tree 2 files changed +4
-7
lines changed
quickwit-metastore/src/metastore
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,6 @@ impl MetastoreService for ControlPlaneMetastore {
87
87
Ok ( response)
88
88
}
89
89
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.
95
90
async fn update_index (
96
91
& self ,
97
92
request : UpdateIndexRequest ,
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ pub async fn serve_quickwit(
493
493
// Set up the "control plane proxy" for the metastore.
494
494
let metastore_through_control_plane = MetastoreServiceClient :: new ( ControlPlaneMetastore :: new (
495
495
control_plane_client. clone ( ) ,
496
- metastore_client. clone ( ) ,
496
+ metastore_client,
497
497
) ) ;
498
498
499
499
// Setup ingest service v1.
@@ -604,7 +604,9 @@ pub async fn serve_quickwit(
604
604
let ( search_job_placer, search_service) = setup_searcher (
605
605
& node_config,
606
606
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 ( ) ,
608
610
storage_resolver. clone ( ) ,
609
611
searcher_context,
610
612
)
You can’t perform that action at this time.
0 commit comments