You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Igor Vagulin (JIRA)" <ji...@apache.org> on 2017/03/18 15:28:41 UTC

[jira] [Updated] (ARTEMIS-1049) JMSDeliveryTime silently break JMSXGroupID

     [ https://issues.apache.org/jira/browse/ARTEMIS-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vagulin updated ARTEMIS-1049:
----------------------------------
    Description: 
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 through. 

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
```
conn = connFactory.createConnection();
session = conn.createSession();
producer = session.createProducer(null);
long deliveryTime = ZonedDateTime.now().toEpochSecond() * 1000
m.setJMSDeliveryTime(deliveryTime);
m.setStringProperty("JMSXGroupID", "mylovelygroup");
producer.send(d, m);
```

  was:
Due to some issue on cide my message get both delivery time and JMSXGroupID property set. This breaks ordering guaranteed by JMSXGroupID, one consumer working through. 

Please at least add some warning to log. Spent 2 days of my life trying to hunt this down.

conn = connFactory.createConnection();
session = conn.createSession();
producer = session.createProducer(null);
long deliveryTime = ZonedDateTime.now().toEpochSecond() * 1000
m.setJMSDeliveryTime(deliveryTime);
m.setStringProperty("JMSXGroupID", "mylovelygroup");
producer.send(d, m);


> 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 through. 
> 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
> ```
> conn = connFactory.createConnection();
> session = conn.createSession();
> producer = session.createProducer(null);
> long deliveryTime = ZonedDateTime.now().toEpochSecond() * 1000
> m.setJMSDeliveryTime(deliveryTime);
> m.setStringProperty("JMSXGroupID", "mylovelygroup");
> producer.send(d, m);
> ```



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