From 95890f336869c1a7e671448defb43e3b3a9191b7 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