Skip to content

Commit b527366

Browse files
mehakmeetsteveloughran
authored andcommitted
HADOOP-18944. S3A: openfile to set async drain threshold correctly
Fix default value of Async drain threshold in S3A OpenFile Contributed by Mehakmeet Singh
1 parent 6ea74f9 commit b527366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public OpenFileInformation prepareToOpenFile(
286286
return new OpenFileInformation()
287287
.withAsyncDrainThreshold(
288288
builderSupport.getPositiveLong(ASYNC_DRAIN_THRESHOLD,
289-
defaultReadAhead))
289+
defaultAsyncDrainThreshold))
290290
.withBufferSize(
291291
(int)builderSupport.getPositiveLong(
292292
FS_OPTION_OPENFILE_BUFFER_SIZE, defaultBufferSize))

0 commit comments

Comments
 (0)