HDFS-3132. Fix findbugs warning on HDFS trunk. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1304681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2012-03-24 00:21:52 +00:00
parent 805c1280ce
commit 4cb809bf04
2 changed files with 3 additions and 1 deletions

View File

@ -339,6 +339,8 @@ Release 0.23.3 - UNRELEASED
HDFS-3100. In BlockSender, throw an exception when it needs to verify
checksum but the meta data does not exist. (Brandon Li via szetszwo)
HDFS-3132. Fix findbugs warning on HDFS trunk. (todd)
BREAKDOWN OF HDFS-1623 SUBTASKS
HDFS-2179. Add fencing framework and mechanisms for NameNode HA. (todd)

View File

@ -187,7 +187,7 @@ public class NameNode {
protected FSNamesystem namesystem;
protected final Configuration conf;
protected NamenodeRole role;
private HAState state;
private volatile HAState state;
private final boolean haEnabled;
private final HAContext haContext;
protected boolean allowStaleStandbyReads;