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

TestDataNodeHotSwapVolumes#testRemoveVolumeBeingWritten fails at disk error verification after volume remove

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 2.8.0, 3.0.0-alpha2
    • hdfs
    • None

    Description

      TestDataNodeHotSwapVolumes#testRemoveVolumeBeingWritten fails occasionally in the following verification.

        700     // If an IOException thrown from BlockReceiver#run, it triggers
        701     // DataNode#checkDiskError(). So we can test whether checkDiskError() is called,
        702     // to see whether there is IOException in BlockReceiver#run().
        703     assertEquals(lastTimeDiskErrorCheck, dn.getLastDiskErrorCheck());
        704 
      
      Error Message
      
      expected:<0> but was:<6498109>
      Stacktrace
      
      java.lang.AssertionError: expected:<0> but was:<6498109>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.apache.hadoop.hdfs.server.datanode.TestDataNodeHotSwapVolumes.testRemoveVolumeBeingWrittenForDatanode(TestDataNodeHotSwapVolumes.java:703)
      	at org.apache.hadoop.hdfs.server.datanode.TestDataNodeHotSwapVolumes.testRemoveVolumeBeingWritten(TestDataNodeHotSwapVolumes.java:620)
      
      

      Attachments

        1. HDFS-10960.02.patch
          2 kB
          Manoj Govindassamy
        2. HDFS-10960.01.patch
          2 kB
          Manoj Govindassamy

        Activity

          People

            manojg Manoj Govindassamy
            manojg Manoj Govindassamy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: