Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7285 Erasure Coding Support inside HDFS
  3. HDFS-8975

Erasure coding : Fix random failure in TestSafeModeWithStripedFile

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7285
    • 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());
      

      Attachments

        1. HDFS-8975-HDFS-7285-01.patch
          4 kB
          J.Andreina
        2. HDFS-8975-HDFS-7285-02.patch
          2 kB
          J.Andreina

        Activity

          People

            andreina J.Andreina
            andreina J.Andreina
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: