[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-1253) Validate DurableSubscriptionTest::testSameTransaction
Clebert Suconic (JIRA)
jira-events at lists.jboss.org
Tue Mar 25 11:12:54 EDT 2008
[ http://jira.jboss.com/jira/browse/JBMESSAGING-1253?page=all ]
Clebert Suconic updated JBMESSAGING-1253:
-----------------------------------------
Issue Type: Bug (was: Task)
Description:
/ You open a Transacted Session
Session sessionA = ..... ;
// You create a Producer on SessionA
MessageProducer producerA = .....;
// You create a Consumer (with a messageListener on SessionA)
MessageConsumer consumerA = ....
setMessageListener(....);
producerA.sendMessage(....);
sesssionA.commit();
// consumerA will process the message
// consumerA will call sessionA.commit();
- The problem here is: The message is arriving during sessionA.commit(); (after commit was called, before commit was completed)
- By the time sessionA.commit is finished, a new transaction will be opened.
- The message arrived on the old completed transaction, hence the message will never be acked.
was:
This test is failing, and I think it's a bug, but it might just be considered an invalid usage.
Can you validate it please?
> Validate DurableSubscriptionTest::testSameTransaction
> -----------------------------------------------------
>
> Key: JBMESSAGING-1253
> URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1253
> Project: JBoss Messaging
> Issue Type: Bug
> Affects Versions: 1.4.1.beta1, 1.4.0.SP3_CP01
> Reporter: Clebert Suconic
> Assigned To: Tim Fox
> Fix For: 1.4.0.SP3.CP02, 1.4.1.beta2
>
>
> / You open a Transacted Session
> Session sessionA = ..... ;
> // You create a Producer on SessionA
> MessageProducer producerA = .....;
> // You create a Consumer (with a messageListener on SessionA)
> MessageConsumer consumerA = ....
> setMessageListener(....);
> producerA.sendMessage(....);
> sesssionA.commit();
> // consumerA will process the message
> // consumerA will call sessionA.commit();
> - The problem here is: The message is arriving during sessionA.commit(); (after commit was called, before commit was completed)
> - By the time sessionA.commit is finished, a new transaction will be opened.
> - The message arrived on the old completed transaction, hence the message will never be acked.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list