mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
S3Utils: Replace S.o.println with log.warn
This commit is contained in:
parent
f8e564469f
commit
50a8c806c3
@ -92,7 +92,7 @@ public class S3Utils
|
||||
final long maxSleepMillis = 60000;
|
||||
final double fuzzyMultiplier = Math.min(Math.max(1 + 0.2 * new Random().nextGaussian(), 0), 2);
|
||||
final long sleepMillis = (long) (Math.min(maxSleepMillis, baseSleepMillis * Math.pow(2, nTry)) * fuzzyMultiplier);
|
||||
System.out.println(String.format("S3 fail on try %d, retrying in %,dms.", nTry, sleepMillis));
|
||||
log.warn("S3 fail on try %d, retrying in %,dms.", nTry, sleepMillis);
|
||||
Thread.sleep(sleepMillis);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user