You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HDFS-14859. Prevent unnecessary evaluation of costly operation getNumLiveDataNodes when dfs.namenode.safemode.min.datanodes is not zero. Contributed by Srinivasu Majeti.
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManagerSafeMode.java
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockManagerSafeMode.java
+86Lines changed: 86 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -377,6 +377,87 @@ public void testDatanodeThreshodShouldBeMet() throws Exception {
377
377
assertFalse(bmSafeMode.isInSafeMode());
378
378
}
379
379
380
+
/**
381
+
* Test block manager won't leave safe mode if datanode threshold is not met
0 commit comments