You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "J.Andreina (JIRA)" <ji...@apache.org> on 2015/08/27 10:59:46 UTC
[jira] [Created] (HDFS-8975) Erasure coding : Fix random failure in
TestSafeModeWithStripedFile
J.Andreina created HDFS-8975:
--------------------------------
Summary: Erasure coding : Fix random failure in TestSafeModeWithStripedFile
Key: HDFS-8975
URL: https://issues.apache.org/jira/browse/HDFS-8975
Project: Hadoop HDFS
Issue Type: Sub-task
Reporter: J.Andreina
Assignee: J.Andreina
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.
{code}
cluster.restartDataNode(dnprops.remove(0));
cluster.triggerBlockReports();
assertEquals(1, NameNodeAdapter.getSafeModeSafeBlocks(nn));
{code}
{code}
dnProperty = dnprops.remove(0);
restartDN(dnProperty,nameNodeAddress);
assertFalse(nn.isInSafeMode());
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)