Browse Source

HDFS-11403. Addendum fix for branch-2.

Arpit Agarwal 8 years ago
parent
commit
4c5655ef1a

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/ActiveStandbyElector.java

@@ -1073,7 +1073,7 @@ public class ActiveStandbyElector implements StatCallback, StringCallback {
 
   private void setAclsWithRetries(final String path)
       throws KeeperException, InterruptedException {
-    Stat stat = new Stat();
+    final Stat stat = new Stat();
     zkDoWithRetries(new ZKAction<Void>() {
       @Override
       public Void run() throws KeeperException, InterruptedException {