Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
TestSafeModeWithStripedFile#testStripedFile0 fails randomly because:
In below code they are restarting DN and even before DN registration happens to NN, block report is triggered and following operation fails
i) Safemode safe block is counted (which is coming as 0 randomly , eventhough one block is safe )
ii) Check for NN in safemode.
cluster.restartDataNode(dnprops.remove(0)); cluster.triggerBlockReports(); assertEquals(1, NameNodeAdapter.getSafeModeSafeBlocks(nn));
dnProperty = dnprops.remove(0); restartDN(dnProperty,nameNodeAddress); assertFalse(nn.isInSafeMode());