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

TestCallQueueManager is flaky

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: