diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 528f5e5a25..3adee445e5 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -588,6 +588,10 @@ Release 2.5.0 - UNRELEASED HADOOP-10689. InputStream is not closed in AzureNativeFileSystemStore#retrieve(). (Chen He via cnauroth) + HADOOP-10690. Lack of synchronization on access to InputStream in + NativeAzureFileSystem#NativeAzureFsInputStream#close(). + (Chen He via cnauroth) + BREAKDOWN OF HADOOP-10514 SUBTASKS AND RELATED JIRAS HADOOP-10520. Extended attributes definition and FileSystem APIs for diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java index 30e6b3091e..87dc9787f0 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java @@ -193,7 +193,7 @@ public synchronized int read(byte[] b, int off, int len) throws IOException { } @Override - public void close() throws IOException { + public synchronized void close() throws IOException { in.close(); }