Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-12-05 Thread Tim Bain
Jason, Thanks for the very thorough investigation; it's very much appreciated. Yes, when you submit the bug in JIRA (you'll need to sign up for a JIRA account), please describe the bug in enough detail that hopefully an implementor will be able to understand the problem without referring back to

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-12-05 Thread jasons
Hi Tim, we managed to attach a debugger as requested and the path you identified does seem to be the one taken by the incorrect update to ACTIVEMQ_ACKS table in respect of DC1. We took several stack dumps (text below) at the different debug points you requested in case that also helps. Note

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-11-23 Thread jasons
Tim, thanks for getting backwill do as you suggested and report back soon. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-11-15 Thread Tim Bain
I think I've found the code that results in this behavior. DurableTopicSubscription.unmatched() is called when a message fails to match a selector for a given consumer, and it calls Destination.acknowledge() which eventually calls DefaultJDBCAdapter.doSetLastAck(). My suspicion is that this method

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-11-08 Thread jasons
Tim, we appreciate any and all help the community can offer and we'll do what we can to help ourselves. You are correct in that a repeat of the test with only DC1 results in the same behaviour and outcome. Pending messages for DC1 are lost/deleted after messages arrive on the same topic but

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-11-08 Thread Tim Bain
Yes, I think it's our bug, but we need to figure out where. I'm hoping that you can help narrow down the symptoms to make it easier to find and fix (which increases the odds of it getting fixed, and is therefore in your best interest). Tim On Nov 7, 2017 7:29 PM, "jasons"

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-11-07 Thread jasons
Hi Tim, do you mean improper handling by our consumer code or improper handling by ActiveMQ when selectors don't match? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ losing durable topic messages when JournalledJDBCPersistence enabled

2017-11-07 Thread Tim Bain
What happens if you run the same message stream with only DC1 subscribed? I suspect that you'll see the same behavior, and that it stems not from consumer cross-talk but from our improper handling of messages that don't match the subscription's selector. Tim On Nov 6, 2017 10:42 PM, "jasons"