activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Vagulin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ARTEMIS-1049) JMSDeliveryTime silently break JMSXGroupID
Date Wed, 29 Mar 2017 20:46:41 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15947852#comment-15947852
] 

Igor Vagulin edited comment on ARTEMIS-1049 at 3/29/17 8:46 PM:
----------------------------------------------------------------

> What behavior are you expecting and what do you actually observe?
I am expect orderring between m1 and m2 in example in description will be preserved. In 1
of ~50 iterations m2 arrive before m1. Better reproducible when there are several groups with
~10 messages in each. Sometimes ordering is broken. Consumer is same.

> Do you have a reproducible test-case?
Code part of our large system. Don't have artemis junit or something.


was (Author: ivagulin):
> What behavior are you expecting and what do you actually observe?
I am expect orderring between m1 and m2 in example in description will be preserved. In 1
of ~50 iterations m2 arrive before m1. Better reproducible when there are several groups with
~10 messages in each. Sometimes ordering is broken.

> Do you have a reproducible test-case?
Code part of our large system. Don't have artemis junit or something.

> JMSDeliveryTime silently break JMSXGroupID
> ------------------------------------------
>
>                 Key: ARTEMIS-1049
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1049
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Igor Vagulin
>
> Due to some issue in code my message get both delivery time and JMSXGroupID property
set. This breaks ordering guaranteed by JMSXGroupID, one consumer working thought. 
> Please at least add some warning to log. Spent 2 days of my life trying to hunt this
down.
> message produced by code below will not be properly ordered
> {quote}
> conn = connFactory.createConnection();
> session = conn.createSession();
> MapMessage m1 = session.createMapMessage();
> MapMessage m2 = session.createMapMessage();
> producer = session.createProducer(null);
> long deliveryTime = ZonedDateTime.now().toEpochSecond() * 1000
> m1.setJMSDeliveryTime(deliveryTime);
> m1.setStringProperty("JMSXGroupID", "mylovelygroup");
> m2.setJMSDeliveryTime(deliveryTime);
> m3.setStringProperty("JMSXGroupID", "mylovelygroup");
> producer.send(d, m1);
> producer.send(d, m2);
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message