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

Fix inconsistent synchronization in BPOfferService

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      Description

      TestBPOfferService#testBPInitErrorHandling fails intermittently. We believe it's because of inconsistent synchronization in BPOfferService.

      stack trace:

      Regression
      
      org.apache.hadoop.hdfs.server.datanode.TestBPOfferService.testBPInitErrorHandling
      
      Failing for the past 1 build (Since #5698 )
      Took 0.16 sec.
      
      Error Message
      
      expected:<1> but was:<2>
      
      Stacktrace
      
      java.lang.AssertionError: expected:<1> but was:<2>
      at org.junit.Assert.fail(Assert.java:93)
      at org.junit.Assert.failNotEquals(Assert.java:647)
      at org.junit.Assert.assertEquals(Assert.java:128)
      

      see https://builds.apache.org/job/PreCommit-HDFS-Build/5698//testReport/org.apache.hadoop.hdfs.server.datanode/TestBPOfferService/testBPInitErrorHandling/

        Attachments

        1. trunk-5666.patch
          0.7 kB
          Jimmy Xiang
        2. trunk-5666_v2.patch
          1.0 kB
          Jimmy Xiang

          Issue Links

            Activity

              People

              • Assignee:
                jxiang Jimmy Xiang
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: