mirror of https://github.com/apache/druid.git
Adding more logging for s3 RetryableS3OutputStream (#16117)
Adding more logging for s3 RetryableS3OutputStream which would help us determine if the chunk size needs to be adjusted.
This commit is contained in:
parent
dd9bc3749a
commit
5e603ac5ff
|
@ -269,7 +269,12 @@ public class RetryableS3OutputStream extends OutputStream
|
||||||
// Closeables are closed in LIFO order
|
// Closeables are closed in LIFO order
|
||||||
closer.register(() -> {
|
closer.register(() -> {
|
||||||
// This should be emitted as a metric
|
// This should be emitted as a metric
|
||||||
LOG.info("Total push time: [%d] ms", pushStopwatch.elapsed(TimeUnit.MILLISECONDS));
|
LOG.info(
|
||||||
|
"Pushed total [%d] parts containing [%d] bytes in [%d]ms.",
|
||||||
|
numChunksPushed,
|
||||||
|
resultsSize,
|
||||||
|
pushStopwatch.elapsed(TimeUnit.MILLISECONDS)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
closer.register(() -> org.apache.commons.io.FileUtils.forceDelete(chunkStorePath));
|
closer.register(() -> org.apache.commons.io.FileUtils.forceDelete(chunkStorePath));
|
||||||
|
|
Loading…
Reference in New Issue