Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10603

Fix flaky tests in org.apache.hadoop.hdfs.server.namenode.snapshot.TestOpenFilesWithSnapshot

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: hdfs, namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Test
      org.apache.hadoop.hdfs.server.namenode.snapshot.TestOpenFilesWithSnapshot.testWithCheckpoint

      may fail intermittently as

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running org.apache.hadoop.hdfs.server.namenode.snapshot.TestOpenFilesWithSnapshot
      Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 63.386 sec <<< FAILURE! - in org.apache.hadoop.hdfs.server.namenode.snapshot.TestOpenFilesWithSnapshot
      testWithCheckpoint(org.apache.hadoop.hdfs.server.namenode.snapshot.TestOpenFilesWithSnapshot)  Time elapsed: 15.092 sec  <<< ERROR!
      java.io.IOException: Timed out waiting for Mini HDFS Cluster to start
      	at org.apache.hadoop.hdfs.MiniDFSCluster.waitClusterUp(MiniDFSCluster.java:1363)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.restartNameNode(MiniDFSCluster.java:2041)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.restartNameNode(MiniDFSCluster.java:2011)
      	at org.apache.hadoop.hdfs.server.namenode.snapshot.TestOpenFilesWithSnapshot.testWithCheckpoint(TestOpenFilesWithSnapshot.java:94)
      
      
      Results :
      
      Tests in error: 
        TestOpenFilesWithSnapshot.testWithCheckpoint:94 ยป IO Timed out waiting for Min...
      
      Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
      
      

        Attachments

        1. HDFS-10603.002.patch
          3 kB
          Yiqun Lin
        2. HDFS-10603.001.patch
          2 kB
          Yiqun Lin

          Activity

            People

            • Assignee:
              linyiqun Yiqun Lin
              Reporter:
              yzhangal Yongjun Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: