Skip to content

Commit

Permalink
chore: retry until recovery success
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 committed Nov 22, 2022
1 parent 3bc351b commit ae3923e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/meta/src/barrier/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ where
{
// Retry base interval in milliseconds.
const RECOVERY_RETRY_BASE_INTERVAL: u64 = 100;
// Retry max attempts.
const RECOVERY_RETRY_MAX_ATTEMPTS: usize = 10;
// Retry max interval.
const RECOVERY_RETRY_MAX_INTERVAL: Duration = Duration::from_secs(10);

Expand All @@ -57,7 +55,6 @@ where
fn get_retry_strategy() -> impl Iterator<Item = Duration> {
ExponentialBackoff::from_millis(Self::RECOVERY_RETRY_BASE_INTERVAL)
.max_delay(Self::RECOVERY_RETRY_MAX_INTERVAL)
.take(Self::RECOVERY_RETRY_MAX_ATTEMPTS)
.map(jitter)
}

Expand Down

0 comments on commit ae3923e

Please sign in to comment.