diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/ActiveStandbyElector.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/ActiveStandbyElector.java index db853f4eff3..cbd610c7fd5 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/ActiveStandbyElector.java +++ b/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() { @Override public Void run() throws KeeperException, InterruptedException {