Skip to content

Commit 60c7d4f

Browse files
committed
HADOOP-19516. S3A: SDK reads content twice during PUT to S3 Express store.
Downgrade warning message from INFO to DEBUG. Note: this does not fix the apparent issue, merely stops the log message being printed during single-object PUTs to S3 Express storage. Contributed by Steve Loughran.
1 parent 81ab039 commit 60c7d4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/UploadContentProviders.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ public final InputStream newStream() {
286286
// the stream has been recreated for the first time.
287287
// notify only once for this stream, so as not to flood
288288
// the logs.
289-
LOG.info("Stream recreated: {}", this);
289+
// originally logged at info; logs at debug because HADOOP-19516
290+
// means that this message is very common with S3 Express stores.
291+
LOG.debug("Stream recreated: {}", this);
290292
}
291293
return setCurrentStream(createNewStream());
292294
}

0 commit comments

Comments
 (0)