Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1340

JMS test JMSQueueBrowserTest#testQueueBrowserInTxSessionLeavesOtherWorkUnaffected fails with the OpenWire protocol (activemq-client JMS library)

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.3.0
    • None
    • Broker, OpenWire
    • None

    Description

      Consider test org.apache.activemq.artemis.tests.integration.amqp.JMSQueueBrowserTest#testQueueBrowserInTxSessionLeavesOtherWorkUnaffected. When it is modified to run with multiple JMS ConnectionFactories, then it passes with Core and AMQP, and fails with OpenWire.

      The location of fail is

            // Now check that all browser work did not affect the session transaction.
            assertEquals(5, queueView.getMessageCount());
      

      The error is

      java.lang.AssertionError: 
      Expected :5
      Actual   :10
      

      I tried placing a Thread.sleep(5000) before the check; the test still failed for the same reason, with the same error.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jdanek Jiri Daněk
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: