Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10395

TestCallQueueManager is flaky

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • test
    • None
    • Reviewed

    Description

      TestCallQueueManager#testSwapUnderContention fails occasionally on a test VM with this assert.

      java.lang.AssertionError: null
      	at org.junit.Assert.fail(Assert.java:92)
      	at org.junit.Assert.assertTrue(Assert.java:43)
      	at org.junit.Assert.assertTrue(Assert.java:54)
      	at org.apache.hadoop.ipc.TestCallQueueManager.testSwapUnderContention(TestCallQueueManager.java:193)
      

      Although it appears unlikely, it is possible for the queue to be intermittently empty while the putters and getters are running. The assert can be removed or coded differently.

      Attachments

        1. HADOOP-10395.01.patch
          0.7 kB
          Arpit Agarwal

        Issue Links

          Activity

            People

              arp Arpit Agarwal
              arp Arpit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: