You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
framework.L.Debug().Str("attempt/max", fmt.Sprintf("%d/%d", n, maxAttempts)).Msgf("Retrying to check schema existence for %s: %v", subject, err)
574
-
}), retry.RetryIf(func(errerror) bool {
575
-
returnisRetryableError(err)
576
-
}))
572
+
}, retry.Attempts(10),
573
+
retry.Delay(500*time.Millisecond),
574
+
retry.DelayType(retry.BackOffDelay),
575
+
retry.OnRetry(func(nuint, errerror) {
576
+
framework.L.Warn().Str("attempt/max", fmt.Sprintf("%d/%d", n, maxAttempts)).Msgf("Retrying to check schema existence for %s: %v", subject, err)
577
+
}),
578
+
retry.RetryIf(func(errerror) bool {
579
+
returnisRetryableError(err)
580
+
}))
577
581
578
582
ifexistErr!=nil {
583
+
framework.L.Warn().Str("subject", subject).Err(existErr).Msgf("All %d attempts to check schema existence failed. Last error: %v", maxAttempts, existErr)
0 commit comments