Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 420B2EBA2 for ; Thu, 21 Feb 2013 20:28:13 +0000 (UTC) Received: (qmail 29743 invoked by uid 500); 21 Feb 2013 20:28:13 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 29665 invoked by uid 500); 21 Feb 2013 20:28:12 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 29656 invoked by uid 99); 21 Feb 2013 20:28:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 20:28:12 +0000 Date: Thu, 21 Feb 2013 20:28:12 +0000 (UTC) From: "Kevin Earls (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMQ-4338) MQTTSSLTest has multiple test cases that fail frequently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4338?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Earls updated AMQ-4338: ----------------------------- Attachment: AMQ-4338A.patch This patch bumps up the timeouts from the previous patch. I had set them t= o 30 seconds, but that's not enough on some slow nodes. =20 > 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 testSendAndRecei= veExactlyOnce, testSendAndReceiveLargeMessages, testSendAndReceiveMQTT, tes= tSendAtLeastOnceReceiveAtMostOnce, testSendAtLeastOnceReceiveExactlyOnce, t= estSendJMSReceiveMQTT, testSendMQTTReceiveJMS) which fail fairly frequently= because of a hang on the provider.connect() call in initializeConnection()= as shown in the stacktrace below.=20 > Another problem with this test is it was giving a misleading error when r= un under Hudson, showing that the test that followed it (MQTTTest) was fail= ing instead. I think this was because of the way it was using AutoFailTest= Support. I will attach a patch which removes that and uses timeouts on @Te= st annotations instead. > testSendAndReceiveLargeMessages(org.apache.activemq.transport.mqtt.MQTTSS= LTest) Time elapsed: 30.004 sec <<< ERROR! > java.lang.Exception: test timed out after 30000 milliseconds > at sun.misc.Unsafe.park(Native Method) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:1= 86) > at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndC= heckInterrupt(AbstractQueuedSynchronizer.java:834) > at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquir= eSharedInterruptibly(AbstractQueuedSynchronizer.java:994) > at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireS= haredInterruptibly(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(Blocking= Connection.java:49) > at org.apache.activemq.transport.mqtt.FuseMQQTTClientProvider.con= nect(FuseMQQTTClientProvider.java:39) > at org.apache.activemq.transport.mqtt.MQTTSSLTest.initializeConne= ction(MQTTSSLTest.java:60) > Results : > Tests in error: > MQTTSSLTest>AbstractMQTTTest.testSendAndReceiveLargeMessages:247->initi= alizeConnection:60 =C2=BB -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira