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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1304682 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2012-03-24 00:21:58 +00:00
parent 97c17afccc
commit 8309c8f182
2 changed files with 3 additions and 1 deletions

View File

@ -243,6 +243,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;