File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
quickwit-common/src/tower Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 95
95
///
96
96
/// If the inner service does not complete within the specified duration,
97
97
/// the response will be aborted with the error `TimeoutExceeded`.
98
+ ///
99
+ /// Note that when used in combination with a retry layer, this should be
100
+ /// stacked on top of it for the timeout to be retried.
98
101
#[ derive( Debug , Clone ) ]
99
102
pub struct TimeoutLayer {
100
103
timeout : Duration ,
Original file line number Diff line number Diff line change @@ -463,8 +463,8 @@ pub async fn serve_quickwit(
463
463
bail ! ( "could not find any metastore node in the cluster" ) ;
464
464
}
465
465
MetastoreServiceClient :: tower ( )
466
- . stack_layer ( TimeoutLayer :: new ( GRPC_METASTORE_SERVICE_TIMEOUT ) )
467
466
. stack_layer ( RetryLayer :: new ( RetryPolicy :: from ( RetryParams :: standard ( ) ) ) )
467
+ . stack_layer ( TimeoutLayer :: new ( GRPC_METASTORE_SERVICE_TIMEOUT ) )
468
468
. stack_layer ( METASTORE_GRPC_CLIENT_METRICS_LAYER . clone ( ) )
469
469
. stack_layer ( tower:: limit:: GlobalConcurrencyLimitLayer :: new (
470
470
get_metastore_client_max_concurrency ( ) ,
You can’t perform that action at this time.
0 commit comments