From b666075a413f70b8b481148edc4c20a52430d117 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Tue, 6 Dec 2022 09:58:51 +0000 Subject: [PATCH] HADOOP-18560. AvroFSInput opens a stream twice and discards the second one without closing (#5186) This is needed for branches with the hadoop-common changes of HADOOP-16202. Enhanced openFile() --- .../src/main/java/org/apache/hadoop/fs/AvroFSInput.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AvroFSInput.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AvroFSInput.java index 7518dd2f7e..155381de94 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AvroFSInput.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AvroFSInput.java @@ -60,7 +60,6 @@ public AvroFSInput(final FileContext fc, final Path p) throws IOException { FS_OPTION_OPENFILE_READ_POLICY_SEQUENTIAL) .withFileStatus(status) .build()); - fc.open(p); } @Override