HADOOP-10690. Lack of synchronization on access to InputStream in NativeAzureFileSystem#NativeAzureFsInputStream#close(). Contributed by Chen He.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1604236 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 61bf9f7799)
This commit is contained in:
Chris Nauroth 2014-06-20 18:36:11 +00:00 committed by cnauroth
parent 02a3bf8bda
commit cb6eb5931f
2 changed files with 5 additions and 1 deletions

View File

@ -1294,6 +1294,10 @@ Release 2.5.0 - 2014-08-11
HADOOP-10910. Increase findbugs maxHeap size. (wang)
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

View File

@ -196,7 +196,7 @@ public class NativeAzureFileSystem extends FileSystem {
}
@Override
public void close() throws IOException {
public synchronized void close() throws IOException {
in.close();
}