Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2434

TestNameNodeMetrics.testCorruptBlock fails intermittently

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0, 0.23.7
    • Component/s: test
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      java.lang.AssertionError: Bad value for metric CorruptBlocks expected:<1> but was:<0>
      at org.junit.Assert.fail(Assert.java:91)
      at org.junit.Assert.failNotEquals(Assert.java:645)
      at org.junit.Assert.assertEquals(Assert.java:126)
      at org.junit.Assert.assertEquals(Assert.java:470)
      at org.apache.hadoop.test.MetricsAsserts.assertGauge(MetricsAsserts.java:185)
      at org.apache.hadoop.hdfs.server.namenode.metrics.TestNameNodeMetrics.__CLR3_0_2t8sh531i1k(TestNameNodeMetrics.java:175)
      at org.apache.hadoop.hdfs.server.namenode.metrics.TestNameNodeMetrics.testCorruptBlock(TestNameNodeMetrics.java:164)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at junit.framework.TestCase.runTest(TestCase.java:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)

      1. HDFS-2434.trunk.005.patch
        2 kB
        Jing Zhao
      2. HDFS-2434.trunk.004.patch
        3 kB
        Jing Zhao
      3. HDFS-2434.trunk.003.patch
        3 kB
        Jing Zhao
      4. HDFS-2434.002.patch
        2 kB
        Jing Zhao
      5. HDFS-2434.001.patch
        2 kB
        Jing Zhao

        Issue Links

          Activity

          Kihwal Lee made changes -
          Fix Version/s 0.23.7 [ 12323955 ]
          Andrew Wang made changes -
          Link This issue is related to HDFS-4338 [ HDFS-4338 ]
          Suresh Srinivas made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 3.0.0 [ 12320356 ]
          Resolution Fixed [ 1 ]
          Jing Zhao made changes -
          Attachment HDFS-2434.trunk.005.patch [ 12550020 ]
          Jing Zhao made changes -
          Status Reopened [ 4 ] Patch Available [ 10002 ]
          Affects Version/s 3.0.0 [ 12320356 ]
          Jing Zhao made changes -
          Attachment HDFS-2434.trunk.004.patch [ 12549436 ]
          Jing Zhao made changes -
          Attachment HDFS-2434.trunk.003.patch [ 12549373 ]
          Jing Zhao made changes -
          Assignee Jing Zhao [ jingzhao ]
          Eli Collins made changes -
          Labels test-fail
          Jing Zhao made changes -
          Attachment HDFS-2434.002.patch [ 12547559 ]
          Jing Zhao made changes -
          Attachment HDFS-2434.001.patch [ 12547510 ]
          Trevor Robinson made changes -
          Link This issue is duplicated by HDFS-3812 [ HDFS-3812 ]
          Todd Lipcon made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Steve Loughran made changes -
          Link This issue is part of HDFS-2966 [ HDFS-2966 ]
          Uma Maheswara Rao G made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Cannot Reproduce [ 5 ]
          Uma Maheswara Rao G created issue -

            People

            • Assignee:
              Jing Zhao
              Reporter:
              Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development