[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-23 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13774441#comment-13774441
 ] 

Wieslaw Dudek commented on AMQ-4533:


I used the last test case from: https://fusesource.com/issues/browse/ENTMQ-409
and tested it on my laptop.
Results: Tests run: 20 Failed: 8

I attached logs from the failed tests:
LOGS_FAILED_5.9.0.redhat-610-SNAPSHOT.zip

I have also checked it on very slow Solaris system where I was not able to get 
the test case passed even once/see attached logs/.

After changing only the options to have abortConnection=true 
ignoreIdleConsumers=false I managed to pass the test case on the Solaris 
environment and got better results on the laptop with Windows OS: Tests run: 20 
Failed 2

So I was able to get the test case failed even with abortConnection=true 
ignoreIdleConsumers=false but it behaved much better with these options.

For testing I used the oryginal TC and 5.9.0.redhat-610-SNAPSHOT from:

http://repo.fusesource.com/nexus/content/repositories/snapshots/

As for activemq-all we had only those:
5.9-fuse-SNAPSHOT/  Thu Jun 27 11:57:53 UTC 2013
5.9.0.redhat-610-SNAPSHOT/  Sat Sep 21 00:34:04 UTC 2013  


 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-19 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771636#comment-13771636
 ] 

Wieslaw Dudek commented on AMQ-4533:


For me it has also passed 90-95% times but I sent you the case when it failed. 
Also please notice the wrong statistics there. We had there above 1000 messages 
or even -2. Why? 
I do not want it to pass 99% but 100% because we have on the production rare 
case when we have to remove all the messages from all queues because of such 
freeze (nothing else helps). This is the reason I am a bit pushy to get it 
solved completly. 
As for the parameters with ignoreIdleConsumers=false and 
abortConnection=true I managed to get 100% of success runs ignoring 
statistics however. With ignoreIdleConsumers=true none of the two test cases 
does not work for me every time. With abortConnection=false only 
kahaPendingMessages.zip is going to work, the AMQFreezeTest is failing 
simetimes.
We really need to get rid of the AMQ freezes which are very bad and cost much 
also as for the mainenance.
Could you advise why ignoreIdleConsumers=false helps so much but you said it 
should not? Anyway I would like to avoid setting this.

Also please use the original test case as we can modify any test case to pass 
but I need to know reasons for any change to our application as for 
AUTO_ACKNOWLEDGE before puting it in the late state of our project. We need the 
code to reflect out production design.




 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-19 Thread Dejan Bosanac (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771703#comment-13771703
 ] 

Dejan Bosanac commented on AMQ-4533:


The problem is how the spring message listener works. It doesn't use message 
listener like you would in a JMS app. Instead it does receive() on the session, 
gets the message and manually executes onMessage() on the listener. In auto 
acknowledge mode as soon as receive() is done, the message is acked and 
considered processed. So the message that sleeps forever will not be resent to 
other consumers when this consumer is detected slow. Turning to client 
acknowlement Spring actually manually acks the message when onMessage() 
completes. So when we close the consumer, the current long-sleeping message 
will be replayed to other consumers.

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-19 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771808#comment-13771808
 ] 

Wieslaw Dudek commented on AMQ-4533:


Thank you for your comment!
We do not care about the long-sleeping message but about all the prefetched 
messages for the sleeping consumer which needs to be redispatched  delivered 
to other consumers. This is all what needs to be guaranteed here no matter what 
option we are going to use in the spring listener we do not want the “freeze” - 
meaning that all pending/prefetched messages have to be re-dispatched from such 
“slow” /or frozen/ consumers to other ones. However I am still concerned about 
the ignoreIdleConsumers=false and abortConnection=true which is going to 
work for me. Why ignoreIdleConsumers=false helps so much when you said it 
should not? Could it be checked as we would like to avoid this?

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-18 Thread Timothy Bish (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770952#comment-13770952
 ] 

Timothy Bish commented on AMQ-4533:
---

Idle consumers are consumers that have no outstanding dispatched messages.  
These consumer have nothing to do and therefore would always trip the slow 
condition and eventually be closed.  In the case of having the 
abortConnection=true this means that you'd have consumer connection coming and 
going for no real reason which could impact performance of your application.  I 
don't see why you'd want to not just ignore the idle one's and only focus on 
consumers that have not ack'd outstanding messages in the allocated time.  

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-18 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770941#comment-13770941
 ] 

Wieslaw Dudek commented on AMQ-4533:


Please advise why do you think the auto_acknowledge option should not be used? 

I managed to get the both test cases to pass using the 
ignoreIdleConsumers=false and abortConnection=true 
if we consider the traces only /the messages really received/ and not taking 
into account the wrong statistics. I got all the messages consumed by the 
spring consumers. The slow strategy after being triggered a few times was able 
to close the connections and they have been recreated by spring consumers only 
so I had to modify the test cases to use the spring configuration for both 
INPUT_QUEUE  RECEIPT_QUEUE.
I used the original test cases in form I sent here with the mentioned 
modifications.

What might be the risk for us to use the ignoreIdleConsumers=false and 
abortConnection=true?

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-18 Thread Timothy Bish (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771114#comment-13771114
 ] 

Timothy Bish commented on AMQ-4533:
---

Running with Dejan's configuration I see the test passing consistently now. 

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, 
 AMQFreeze_logs.zip, AMQFreezeTest-5.8.0.fuse-72-SNAPSHOT-log.zip, 
 AMQFreezeTest-5.9.0.redhat-610084-log.zip, AMQFreezeTest.patch, 
 AMQFreezeTest.zip, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-16 Thread Dejan Bosanac (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13768401#comment-13768401
 ] 

Dejan Bosanac commented on AMQ-4533:


Hi,

I started investigating an AMQFreeze test in more details. One thing that seems 
off to me is that all consumers on the InputQueue are using the same 
connection. My impression is that you're trying to simulate multiple 
applications (using each they're own connection) is misbehaving and being 
reconnected. As we have it here, all the misbehaving consumers are killing the 
same connection multiple times very frequently. Can you please confirm what's 
the intention of the test and maybe modify test accordingly?

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, AMQFreeze_logs.zip, 
 AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-16 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13768449#comment-13768449
 ] 

Wieslaw Dudek commented on AMQ-4533:


The configuration for ActiveMQ broker  spring consumers reflect exectly our 
production configuration. 
If we should change something here just let me know.
This models our 25 consumers which simulatanously process the messages on the 
InputQueue 
and send the receipts to the ReceiptQueue.

I agree it is very weird test case as we tried to simulate unsafe kill 
command/or 
other unexpected scenario and possibly a bug in the application which might 
result in ActiveMQ or queue freeze. 
I am sure that the good designed software and normal processing is working 
perfectly until something unusual happened 
or a bug in code. It is a very rare case when we have to remove all the 
messages/and restart all applications 
to let AMQ keep working but if it happens it is very serious outage.

In some our testing after upgrading to AMQ 5.8 we have experienced worse 
scenario yet 
when even restarting of AMQ and consumers did not help to keep processing. 
We will keep trying to recreate the scenario as the upgrading does not 
eliminate the freezes 
and it is very serious issue. 

What we do here is we put messages to INPUT_QUEUE and the 25 consumers, this 
time configured to use spring, 
consume them putting a receipt to RECEIPT_QUEUE. 
Next we have consumers which consume the messages from RECEIPT_QUEUE. 
So after TC ends both INPUT_QUEUE  RECEIPT_QUEUE should be empty. 
If not it indicates some freeze or TC ended too fast /we could give some sleep 
option to give a chance for AMQ 
to consume the messages/.

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533-Test.patch, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQFreezeFailingTest.zip, AMQFreeze_logs.zip, 
 AMQFreezeTest.patch, AMQFreezeTest.zip, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-11 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13764271#comment-13764271
 ] 

Wieslaw Dudek commented on AMQ-4533:


During my testing today the 5.9.0.redhat-610067 resolved the 
AMQ4533(kahaPendingMessages) test case using 
abortSlowAckConsumerStrategy maxSlowCount=1/ and when put enough time to 
consume all messages by adding Thread.sleep(30);  before checking the queue 
sizes  
but after adding abortConnection=true e.g. abortSlowAckConsumerStrategy 
maxSlowCount=1 abortConnection=true/ the TC is failing again.

So abortConnection=true is not working and AMQ cannot force the consumer 
connections to close but only can ask them gently to be closed. 
For kahaPendingMessages TC it is enough because the consumer thread is in a 
good state /only too busy to process other messages/ 
but for another test case (AMQFreezeTest) it is not enough because being 
interrupted the consumers connections are in wrong state and do not react on 
the close request from AMQ broker /I guess/.
For the second test case the abortConnection=true is necessary and for my 
opinion it is why the second test case is still failing.
The logs proves the theory as you can see at the end of it, during the broker 
shutdown procedure the connections are released and some consumption of the 
messages proceed but this is too late as AMQ had to abort those connections 
earlier during the slow consumer strategy procedure. 

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQFreeze_logs.zip, AMQFreezeTest.zip, 
 kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-11 Thread Timothy Bish (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13764326#comment-13764326
 ] 

Timothy Bish commented on AMQ-4533:
---

Can you clarify which test case you are using and what its current 
configuration is.  You've referenced a couple things so I'm a bit confused now 
on which one you are looking at.  Perhaps you can attached your current test 
case with the configuration that's not working so I know I'm looking at the 
right thing.  

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Timothy Bish
 Fix For: 5.9.0

 Attachments: AMQ4533_logs.ZIP, AMQ4533Test.java, AMQ4533-Test.patch, 
 AMQ4533-Test.patch, AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQFreeze_logs.zip, AMQFreezeTest.zip, 
 kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-09-09 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13761742#comment-13761742
 ] 

Wieslaw Dudek commented on AMQ-4533:


It seems that the issue has not been resolved yet by introducing the timeout in 
AMQ-4621. See the logs from failed TC. We have another test case AMQFreeze 
which fails even the timeout is set using SlowAckConsumerStrategy. I attached 
the new TC. We should reopen AMQ-4533.

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Assignee: Gary Tully
 Fix For: 5.8.0

 Attachments: AMQ4533Test.java, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-07-05 Thread Timothy Bish (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13700655#comment-13700655
 ] 

Timothy Bish commented on AMQ-4533:
---

Would be good to close this out as resolved and create an enhancement issue 
documenting the needed improvements to cover this use case so it can get added 
into the road map.

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533Test.java, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-25 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13692885#comment-13692885
 ] 

Wieslaw Dudek commented on AMQ-4533:


The test case has passed for AMQ v.5.8.0 after setting the prefetchSize to 10 
and abortSlowConsumerStrategy as follows:  
  policyEntry queue= producerFlowControl=true memoryLimit=10mb 
queuePrefetch=10 
slowConsumerStrategy
abortSlowConsumerStrategy/
/slowConsumerStrategy
   /policyEntry 
I agree that the time since last ack would be good enough.

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533Test.java, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-21 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13690397#comment-13690397
 ] 

Wieslaw Dudek commented on AMQ-4533:


Thank you Gary for your input but apart from the fact this might be 
unacceptable to decrease the performance by reducing prefetchSize from 1000 to 
10 I am not sure if it is going to work. It is still failing on my local 
machine and anyway it might happen that we need wait a long time to have full 
prefetch queue /1000 messages assigned to “stuck” consumer/ to be released. We 
could tune the prefetch for every queue but anyway we might really need some 
good working timeout for aborting such consumers /to release all prefetched 
messages to it/. For now the timeout is related to slow consumers only and 
depends on difficult mechanism of slowness detecting which does not work if 
there are not enough messages coming to a queue for some time. So most likely 
it is still necessary to have a new checking mechanism whether a consumer is 
still consuming messages or not. 

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533Test.java, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-21 Thread Gary Tully (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13690424#comment-13690424
 ] 

Gary Tully commented on AMQ-4533:
-

However, if there are very few messages and lots of consumers, using a prefetch 
 0 will not have much impact. Prefetch is really only beneficial when 
consumers are very fast and when there are lots of messages in the queue or 
many producers. When consumers take a long or variable amount of time, it is 
best to leave the messages in the queue (prefecth=1) for other consumers to 
access.

ok, we may need to make the slowness determination some sort of strategy.
Have a thought on how best to determine the 'slowness of a consumer, maye time 
since last ack. 
It needs to a fast calculation. The decision to dispatch based on prefetch was 
already firing an advisory for a slow consumer so that was reused for the 
current abort policy. 

I would be interested to know if you can get the test to fail with a 
prefetch=1, also note that just the consumer is aborted, not the connection, 
abortConnection=false (Default)

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533Test.java, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-19 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13687900#comment-13687900
 ] 

Wieslaw Dudek commented on AMQ-4533:


Here is what I tried to put into spring2.xml  spring3.xml but we still have 
e.g. 400 messages stuck. I checked a few possible configurations for 
abortSlowConsumerStrategy and the test case is still failing.

destinationPolicy
  policyMap
policyEntries
   policyEntry queue= producerFlowControl=true memoryLimit=10mb
  slowConsumerStrategy
 abortSlowConsumerStrategy abortConnection=true 
maxSlowDuration=3 /
  /slowConsumerStrategy
/policyEntry
/policyEntries
  /policyMap
/destinationPolicy


 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-18 Thread Jason Shepherd (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13686426#comment-13686426
 ] 

Jason Shepherd commented on AMQ-4533:
-

In the sendAndListenToWithFailower method, you call listenInThreads with 
'ReceiptQueue' as the queueName. If you only wanted to set the prefetch on 
ReceiptQueue, you would need to refactor the sendAndListenToWithFailower method 
to be able to specifying the prefetch value to pass to the 
registerConsumerListeners methods. 

In that method, you could pass the prefetch. So instead of :

MessageConsumer messageConsumer = session.createConsumer(   

session.createQueue(queueName));

You could use something like:

queue = new ActiveMQQueue(queueName + ?consumer.prefetchSize=0);
MessageConsumer messageConsumer = session.createConsumer(queue)

See this page for a reference:

   http://activemq.apache.org/what-is-the-prefetch-limit-for.html



 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-18 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13686504#comment-13686504
 ] 

Wieslaw Dudek commented on AMQ-4533:


Yes, I did but it does not work. It is illegal to set prefetch to 0 and set 
message listener. Could someone create working TC to prove the theory? However 
we will still need some mechanism to timeout poisoned consumer to move prefetch 
messages to others. I would like to ensure that the test case is working 
without setting prefetch value to 0 and even with 1000 messages blocked at one 
consumer for some limited or unlimited time we have the next thousands of 
messages flowing to other consumers. 


 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-18 Thread Gary Tully (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13686539#comment-13686539
 ] 

Gary Tully commented on AMQ-4533:
-

Prefetch 1 is the best you can do with a listener. 
Have a look 
athttp://activemq.2283324.n4.nabble.com/Finding-a-slow-consumer-td4654153.html 
to see some detail on the abort slow consumer policy. That will ensure that 
stuck prefetched messages get re dispatched. 

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-18 Thread Gary Tully (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13686543#comment-13686543
 ] 

Gary Tully commented on AMQ-4533:
-

Some additional doc at 
https://access.redhat.com/site/documentation/en-US/JBoss_A-MQ/6.0/html/Tuning_Guide/files/TuningSlowConsumers.html

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-17 Thread Wieslaw Dudek (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13685658#comment-13685658
 ] 

Wieslaw Dudek commented on AMQ-4533:


It might not be acceptable by customers when the app performance decreases. 
However if that is the case I wonder if there is any other possibility to 
timeout some poisoned consumer and redirect all the prefetched messages to the 
rest of the consumers or, at least, to deliver next messages to the fast and 
operational consumers to avoid the msgs stuck into invalid one. Also could you 
create a modified version of this test case to prove that the prefetchSize=0 
will solve the issue at the cost of performance degradation in processing of 
messages?

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-12 Thread Gary Tully (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13681347#comment-13681347
 ] 

Gary Tully commented on AMQ-4533:
-

from the current test case (as updated by tim) the queue depth matches the 
inflight count due to messages prefetched by the consumer that waits for ever. 
This is expected. Until the waitingForever consumer closes, prefetched messages 
will not be consumable. Using a prefetch of 0, so making the consumers pull 
messages on demand will resolve this.

In the production env, does the destination with unexpected queue depth have an 
inflight value that matches when viewed via jmx?

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 AMQ4533TestPatch.txt, kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-06-04 Thread Jason Shepherd (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13675455#comment-13675455
 ] 

Jason Shepherd commented on AMQ-4533:
-

This reproducer is basically a reproduction of a production scenario, and it 
needs to be like this, because its the only way we've found to replication the 
issue. If we break down what happens in the test case, hopefully you'll 
understand why we need so many things going on.

Step 2 in the test case is critial for reproducing the problem. It simulates 
slow cusomer, with threads hung, or a slow database operation. Without this 
slow consumer, the test completes very fast, and we don't see the problem. 

The test simulates the production environment where the broker is under heavy 
load. In the test case there is head load on SOME_TEST_QUEUE, all of which uses 
seperate connections pools, message listeners, and latches. Whereas the crital 
messages for the test case are on INPUT_QUEUE, and RECEIPT_QUEUE, which use 
OtherMessageListener, and onOtherMessageLatch.

This test case is the only evidence of a problem which has been plauging our 
production environment for years.

Here is how the TC works:

1) start AMQ brokers

2) start spring consumer for consumming from INPUT_QUEUE and putting receipts 
to RECEIPT_QUEUE
This consumer is processing first message for ever.
   if (isStuckOld!=isStuck) {
log4jLogger.info(sleep for eternity);
Thread.sleep(1);
 }  
and next 49 messages longer /30 seconds/ than rest of 1000 msgs.

if (nrProcessed50) {
Thread.sleep(3);
}

The reason for it is to simulate some slow  stuck consumers which we can 
notice on production.

3) run heavy traffic to SOME.TEST.QUEUE 
a) put 100 messages using 50 threads to broker 1

sendInThreads(QUEUE_NAME, 50, 50, DeliveryMode.NON_PERSISTENT,getUrl1(),1);
sendInThreads(QUEUE_NAME, 50, 50, DeliveryMode.PERSISTENT,getUrl1(),1);

b) get 90 messages in 200 listening threads from broker 2 using 
OtherMessageListener

listenInThreads(QUEUE_NAME, 90, 200,getUrl2(), mListener, otherConnections);

However we do not wait on latches as it is not important. This is traffic to 
simulate heavy load only - not necessary to count them.

4) send traffic to INPUT_QUEUE in 10 threads on broker 1 which triggers our 
spring consumer from step 2 to start consuming and to send output messages to 
RECEIPT_QUEUE /one receipt message sent to RECEIPT_QUEUE for one message 
consumed from INPUT_QUEUE/.

CountDownLatch latch1=sendInThreads(queueName, msgCount, 
threadCount, persistance,getUrl1(),500);

The latch1 is checked later in the step 6 to ensure we had all 1000 messages 
sent there.

5) listen on RECEIPT_QUEUE in 10 threads on broker 2 using MainMessageListener 
with onMainMessageLatch set to 999 /one message should be stuck on consummer 
forever by TC design/

CountDownLatch latch=listenInThreads(queueName, msgCount, 
threadCount,getUrl2(),msgListener,connections);

6) wait for latches - because of heavy load we had to set the timeout long 
enough /here 1000 seconds/ to give the system the chance to process all 
messages from INPUT_QUEUE /the processing might be very slow because of heavy 
load/
onMainMessageLatch.await(1000, TimeUnit.SECONDS);
and also we check if all messages were put into INPUT_QUEUE for processing
latch1.await(msgCount/10, TimeUnit.SECONDS); // .MINUTES

7) check assertions for INPUT_QUEUE and RECEIPT_QUEUE - they should be empty

queueName = INPUT_QUEUE;

queueSize1=queueSize(brokerService1, queueName);
queueSize2=queueSize(brokerService2, queueName);

Assert.assertEquals(Still messages in +queueName,0, 
queueSize1+queueSize2);

queueName = RECEIPT_QUEUE;

queueSize1=queueSize(brokerService1, queueName);
queueSize2=queueSize(brokerService2, queueName);

Assert.assertEquals(Still messages in +queueName,0, 
queueSize1+queueSize2);   


8) close AMQ brokers


 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
 Attachments: AMQ4533TestPatch.txt, AMQ4533TestPatch.txt, 
 kahaPendingMessages.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: 

[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-05-14 Thread Timothy Bish (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13657335#comment-13657335
 ] 

Timothy Bish commented on AMQ-4533:
---

Note: Test is using the depricated and removed amqPersistenceAdapter so it'll 
need an update if run against newer broker releases.  

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Priority: Minor
 Attachments: modified-testcase.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-05-13 Thread Christian Posta (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13656556#comment-13656556
 ] 

Christian Posta commented on AMQ-4533:
--

You may have forgotten to attach the test case?

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Priority: Minor

 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (AMQ-4533) Messages stuck in queue with redelivered=true

2013-05-13 Thread Jason Shepherd (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13656587#comment-13656587
 ] 

Jason Shepherd commented on AMQ-4533:
-

Thanks Christian, I've attached it now.

 Messages stuck in queue with redelivered=true
 -

 Key: AMQ-4533
 URL: https://issues.apache.org/jira/browse/AMQ-4533
 Project: ActiveMQ
  Issue Type: Bug
  Components: JMS client
Affects Versions: 5.7.0
 Environment: Fuse Message Broker 5.7.0
Reporter: Jason Shepherd
Priority: Minor
 Attachments: modified-testcase.zip


 We're  getting message stuck in queues with the 
 redelivery flag set to true.
 We used the following test model: put every 1 second 50 messages 
 sequentially, and after that, the rest of 1000 msgs quickly to INPUT_QUEUE 
 and 
 while starting 25 listeners cosuming from INPUT_QUEUE, which takes about 30 
 seconds to move the message to RECEIPT_QUEUE, 10 other listeners on 
 RECEIPT_QUEUE consume and counts them.
 We tried making one of the consumer slow by setting the 
 processing time to 10 seconds (sleep) and putting a heavy load in 
 500 threads every 1 ms to some other queues the same time.
 Our test case is attached, you might need to install some dependencies 
 to the local maven repository manually:
  mvn install:install-file -DgroupId=org.apache.activemq 
 -DartifactId=activemq-core -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-core-5.7.0.fuse-71-047.jar
  mvn install:install-file -DgroupId=org.apache.kahadb 
 -DartifactId=kahadb -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=kahadb-5.7.0.fuse-71-047.jar
  mvn install:install-file 
 -DgroupId=org.apache.geronimo.management.specs 
 -DartifactId=geronimo-j2ee-management_1.1_spec -Dversion=1.0.1 
 -Dpackaging=jar -Dfile=geronimo-j2ee-management_1.1_spec-1.0.1.jar
  mvn install:install-file -DgroupId=org.apache.activemq.pool 
 -DartifactId=activemq-pool -Dversion=5.7.0-fuse-71-047 -Dpackaging=jar 
 -Dfile=activemq-pool-5.7.0.fuse-71-047.jar
 To run the test, simply use the Maven test target:
 mvn clean test
 If the problem occurs the you'll get a message like this in the test 
 results, (target/surefire-reports):
 java.lang.AssertionError: Still messages in InputQueue expected:0 
 but was:365

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira