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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HDFS-7285
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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-02.patch
          2 kB
          J.Andreina
        2. HDFS-8975-HDFS-7285-01.patch
          4 kB
          J.Andreina

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: