hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dragon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10159) CLONE - Erasure coding : Fix random failure in TestSafeModeWithStripedFile
Date Tue, 15 Mar 2016 08:17:35 GMT
dragon created HDFS-10159:
-----------------------------

             Summary: CLONE - Erasure coding : Fix random failure in TestSafeModeWithStripedFile
                 Key: HDFS-10159
                 URL: https://issues.apache.org/jira/browse/HDFS-10159
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: dragon
            Assignee: J.Andreina
             Fix For: HDFS-7285


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)

Mime
View raw message