hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HDFS-11766. Fix findbugs warning in branch-2.7. Contributed by Chen Liang.
Date Tue, 09 May 2017 16:24:20 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 f8e893f7e -> 6599e57a7


HDFS-11766. Fix findbugs warning in branch-2.7. Contributed by Chen Liang.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6599e57a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6599e57a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6599e57a

Branch: refs/heads/branch-2.7
Commit: 6599e57a79f6aeae05ec169dd1aa4206f919c189
Parents: f8e893f
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Tue May 9 11:22:12 2017 -0500
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Tue May 9 11:22:57 2017 -0500

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                        | 2 ++
 .../src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/6599e57a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 458e3f2..0df8482 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -263,6 +263,8 @@ Release 2.7.4 - UNRELEASED
     HDFS-11714. Newly added NN storage directory won't get initialized
     and cause space exhaustion. (kihwal)
 
+    HDFS-11766. Fix findbugs warning in branch-2.7. (Chen Liang via aajisaka)
+
 Release 2.7.3 - 2016-08-25
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/6599e57a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
index 5de5460..a44de61 100755
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
@@ -2005,7 +2005,7 @@ public class DFSOutputStream extends FSOutputSummer
    * Used in test only.
    */
   @VisibleForTesting
-  void setBytesCurBlock(final long bytesCurBlock) {
+  synchronized void setBytesCurBlock(final long bytesCurBlock) {
     this.bytesCurBlock = bytesCurBlock;
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message