1 2 3 Previous Next 96 Replies Latest reply on Jun 14, 2010 6:20 PM by clebert.suconic

    Regression on AS6 org.jboss.test.jca.test.TransactionActiveUnitTestCase

    clebert.suconic

      I just did a test on AS6 with 2.1.0.Beta3 and 2.1.0.GA, and the test is failing after the upgrade.

       

       

      The test is about expiring setting a transaction with a timeout = 5 seconds:

       

      UserTransaction ut = sessionCtx.getUserTransaction();
      ut.setTransactionTimeout(5);
      ut.begin();

       

       

       

      Then we receive a message (that was sent previously), and wait 10 seconds (wait > timeout)

       

       

      mc.receiveNoWait();
      mc.close();
      try
      {
             Thread.sleep(10000);
      }
      catch (InterruptedException ignored)
      {
      }

       

       

       

      We then send a message:

       

       

      try
      {
              MessageProducer p = s.createProducer(queue);
              Message m = s.createTextMessage("100");
              p.send(m);
      }
      catch (JMSException expected)
      {
      }

       

       

       

      But the message isn't supposed to be accepted. (An exception should be throwed and the message disposed).

       

       

       

      I remeber we delt with this before. Andy fixed it.. but I'm not sure why it has regressed.

       

       

      I guess we will have to  add the AS6 testsuite to the release procedures.

       

       

      We screwed up by at least not setting the AS6 to CR1, or we would have captured this error otherwise.

        1 2 3 Previous Next