Skip to content

Commit 0b1946b

Browse files
committed
fix bug
1 parent 0cf9128 commit 0b1946b

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ public boolean isInStandbyState() {
19401940

19411941
public boolean isInObserverState() {
19421942
if (haContext == null || haContext.getState() == null) {
1943-
return haEnabled;
1943+
return false;
19441944
}
19451945

19461946
return HAServiceState.OBSERVER == haContext.getState().getServiceState();

0 commit comments

Comments
 (0)