[jira] [Commented] (AMQ-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-05-20 Thread Timothy Bish (JIRA)

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

Timothy Bish commented on AMQ-4338:
---

This one looks like its fixed now with the latest MQTT client pulled into the 
build. 

 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-03-20 Thread Pedro Marques (JIRA)

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

Pedro Marques commented on AMQ-4338:


I was testing the system with fusesource client... My code is basically this:

MQTT mqtt = new MQTT();
mqtt.setHost(url);
mqtt.setUserName(user);
mqtt.setPassword(password);

BlockingConnection connection = mqtt.blockingConnection();
connection.connect();

I figured the problem I was having was this because the call blocks on 
connection.connect(). The code works perfectly when run on the same machine 
as the server.





 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-03-19 Thread Pedro Marques (JIRA)

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

Pedro Marques commented on AMQ-4338:


We have this problem in our servers (activemq 5.8.0)... It actually behaves a 
little more predictably, if we try to access the service locally everything 
works great, if the server and client are in different machines every call to 
connect blocks permanently. I would think that this problem should have a 
priority higher than Minor since it makes mqtt over ssl unusable... 
We use activemq server and clients in windows and tried both mqtt+nio+ssl and 
mqtt+ssl without success. Using only tcp connections everything works fine.

 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-03-19 Thread Timothy Bish (JIRA)

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

Timothy Bish commented on AMQ-4338:
---

Pedro, what MQTT client are you using to connect to the Broker with?

 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-02-26 Thread Timothy Bish (JIRA)

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

Timothy Bish commented on AMQ-4338:
---

I did some profiling and testing today.  So far I couldn't find any real 
issues.  It seems that in the case of these tests the QOS setting just makes 
things ungodly slow due to all the back and forth acking that's going on.  I 
guess its possible there's something amiss in the FuseSource MQTT client 
library but so far I haven't found anything.

 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-02-25 Thread Timothy Bish (JIRA)

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

Timothy Bish commented on AMQ-4338:
---

Are you sure those timeouts are sensible, going from 3 to 30 seems like 
there must be something else going on.  

 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-02-25 Thread Kevin Earls (JIRA)

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

Kevin Earls commented on AMQ-4338:
--

Actually, you're right, those are probably not sensible.  The problem test 
cases include:

testSendAndReceiveAtLeastOnce
testSendAtLeastOnceReceiveAtMostOnce
testSendAtLeastOnceReceiveExactlyOnce
testSendJMSReceiveMQTT

On my mac all test cases run in less that 3 seconds.  On Ubuntu and AIX, the 
cases named above sometimes run for ~120 seconds, and sometimes can run even 
longer, or just hang if there's no timeout.



 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338A.patch, AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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-4338) MQTTSSLTest has multiple test cases that fail frequently

2013-02-20 Thread Timothy Bish (JIRA)

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

Timothy Bish commented on AMQ-4338:
---

Added the patch, guess we need to figure out why these are all failing now. 

 MQTTSSLTest has multiple test cases that fail frequently
 

 Key: AMQ-4338
 URL: https://issues.apache.org/jira/browse/AMQ-4338
 Project: ActiveMQ
  Issue Type: Bug
  Components: Test Cases
Reporter: Kevin Earls
Priority: Minor
 Attachments: AMQ-4338.patch


 MQTTSSLTest has multiple different test cases (including 
 testSendAndReceiveExactlyOnce, testSendAndReceiveLargeMessages, 
 testSendAndReceiveMQTT, testSendAtLeastOnceReceiveAtMostOnce, 
 testSendAtLeastOnceReceiveExactlyOnce, testSendJMSReceiveMQTT, 
 testSendMQTTReceiveJMS) which fail fairly frequently because of a hang on the 
 provider.connect() call in initializeConnection() as shown in the stacktrace 
 below. 
 Another problem with this test is it was giving a misleading error when run 
 under Hudson, showing that the test that followed it (MQTTTest) was failing 
 instead.  I think this was because of the way it was using 
 AutoFailTestSupport.  I will attach a patch which removes that and uses 
 timeouts on @Test annotations instead.
 testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSSLTest)
   Time elapsed: 30.004 sec   ERROR!
 java.lang.Exception: test timed out after 3 milliseconds
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
 at org.fusesource.mqtt.client.Promise.await(Promise.java:88)
 at 
 org.fusesource.mqtt.client.BlockingConnection.connect(BlockingConnection.java:49)
 at 
 org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.connect(FuseMQQTTClientProvider.java:39)
 at 
 org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConnection(MQTTSSLTest.java:60)
 Results :
 Tests in error:
   
 MQTTSSLTestAbstractMQTTTest.testSendAndReceiveLargeMessages:247-initializeConnection:60
  »

--
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