Skip to content

Commit

Permalink
Retry faster during startup (#11255)
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
rautenrieth-da authored Oct 15, 2021
1 parent 04feb40 commit 0063b10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ private[platform] object ReadOnlySqlLedger {
case _: MismatchException.LedgerId => false
case _ => false
}
val retryDelay = 5.seconds
val maxAttempts = 100
val retryDelay = 100.millis
val maxAttempts = 3000 // give up after 5min
RetryStrategy.constant(attempts = Some(maxAttempts), waitTime = retryDelay)(predicate) {
(attempt, _) =>
ledgerDao
Expand Down

0 comments on commit 0063b10

Please sign in to comment.