We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf20163 commit d55e5f3Copy full SHA for d55e5f3
src/main/java/org/radarbase/output/source/S3SourceStorage.kt
@@ -118,10 +118,14 @@ class S3SourceStorage(
118
) {
119
throw FileNotFoundException()
120
}
121
- logger.warn("Temporarily failed to do S3 operation: {}", ex.toString())
122
if (i < 2) {
123
- logger.warn("Temporarily failed to do S3 operation: {}, retrying after 1 second.", ex.toString())
124
- Thread.sleep((i + 1) * 1000L)
+ val timeout = i + 1
+ logger.warn(
+ "Temporarily failed to do S3 operation: {}, retrying after {} second(s).",
125
+ ex.toString(),
126
+ timeout,
127
+ )
128
+ Thread.sleep(timeout * 1000L)
129
} else {
130
logger.error("Failed to do S3 operation: {}", ex.toString())
131
exception = ex
0 commit comments