Skip to content

Commit

Permalink
fix(storage): fix expired timeout sec (#15194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored Feb 23, 2024
1 parent 34bb7e3 commit e223b9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/meta/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub fn start(opts: MetaNodeOpts) -> Pin<Box<dyn Future<Output = ()> + Send>> {

const MIN_TIMEOUT_INTERVAL_SEC: u64 = 20;
let compaction_task_max_progress_interval_secs = {
config
(config
.storage
.object_store
.object_store_read_timeout_ms
Expand All @@ -271,7 +271,8 @@ pub fn start(opts: MetaNodeOpts) -> Pin<Box<dyn Future<Output = ()> + Send>> {
.object_store
.object_store_streaming_upload_timeout_ms,
)
.max(config.meta.compaction_task_max_progress_interval_secs)
.max(config.meta.compaction_task_max_progress_interval_secs * 1000))
/ 1000
} + MIN_TIMEOUT_INTERVAL_SEC;

let (mut join_handle, leader_lost_handle, shutdown_send) = rpc_serve(
Expand Down

0 comments on commit e223b9f

Please sign in to comment.