Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1D521200B46 for ; Sat, 2 Jul 2016 01:36:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1BD71160A6C; Fri, 1 Jul 2016 23:36:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3CB72160A61 for ; Sat, 2 Jul 2016 01:36:12 +0200 (CEST) Received: (qmail 14373 invoked by uid 500); 1 Jul 2016 23:36:11 -0000 Mailing-List: contact issues-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 issues@activemq.apache.org Received: (qmail 14362 invoked by uid 99); 1 Jul 2016 23:36:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 23:36:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E89272C027F for ; Fri, 1 Jul 2016 23:36:10 +0000 (UTC) Date: Fri, 1 Jul 2016 23:36:10 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARTEMIS-606) [Artemis Testsuite] JMSServerControl2Test#testCloseConsumerConnectionsForAddressForInVM fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 23:36:13 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-606?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D153= 59834#comment-15359834 ]=20 ASF GitHub Bot commented on ARTEMIS-606: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/activemq-artemis/pull/614 > [Artemis Testsuite] JMSServerControl2Test#testCloseConsumerConnectionsFor= AddressForInVM fails > -------------------------------------------------------------------------= -------------------- > > Key: ARTEMIS-606 > URL: https://issues.apache.org/jira/browse/ARTEMIS-606 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 1.3.0 > Reporter: Erich Duda > > {code} > java.lang.AssertionError: did not received the expected JMSException > =09at org.junit.Assert.fail(Assert.java:88) > =09at org.junit.Assert.assertTrue(Assert.java:41) > =09at org.apache.activemq.artemis.tests.integration.jms.server.management= .JMSServerControl2Test.doCloseConnectionsForUser(JMSServerControl2Test.java= :1136) > =09at org.apache.activemq.artemis.tests.integration.jms.server.management= .JMSServerControl2Test.testCloseConnectionsForUserForInVM(JMSServerControl2= Test.java:143) > {code} > {code} > 11:49:34,359 INFO [org.apache.activemq.artemis.core.server] #*#*# Starti= ng test: testCloseConnectionsForUserForInVM()... > #test testCloseConnectionsForUserForInVM > 11:49:34,394 INFO [org.apache.activemq.artemis.core.server] AMQ221000: l= ive Message Broker is starting with configuration Broker Configuration (clu= stered=3Dfalse,journalDirectory=3D/mnt/hudson_workspace/workspace/eap-70x-a= rtemis-project-testsuite-rhel/NATIVES/true/jdk/ibm1.8/label/EAP-RHEL7/activ= emq-artemis/tests/integration-tests/./target/tmp/junit2245767348249816620/j= ournal,bindingsDirectory=3D/mnt/hudson_workspace/workspace/eap-70x-artemis-= project-testsuite-rhel/NATIVES/true/jdk/ibm1.8/label/EAP-RHEL7/activemq-art= emis/tests/integration-tests/./target/tmp/junit2245767348249816620/bindings= ,largeMessagesDirectory=3D/mnt/hudson_workspace/workspace/eap-70x-artemis-p= roject-testsuite-rhel/NATIVES/true/jdk/ibm1.8/label/EAP-RHEL7/activemq-arte= mis/tests/integration-tests/./target/tmp/junit2245767348249816620/large-msg= ,pagingDirectory=3D/mnt/hudson_workspace/workspace/eap-70x-artemis-project-= testsuite-rhel/NATIVES/true/jdk/ibm1.8/label/EAP-RHEL7/activemq-artemis/tes= ts/integration-tests/./target/tmp/junit2245767348249816620/page) > 11:49:34,395 INFO [org.apache.activemq.artemis.core.server] AMQ221012: U= sing AIO Journal > 11:49:34,397 INFO [org.apache.activemq.artemis.core.server] AMQ221043: P= rotocol module found: [artemis-server]. Adding protocol support for: CORE > 11:49:34,399 INFO [org.apache.activemq.artemis.core.server] AMQ221043: P= rotocol module found: [artemis-amqp-protocol]. Adding protocol support for:= AMQP > 11:49:34,400 INFO [org.apache.activemq.artemis.core.server] AMQ221043: P= rotocol module found: [artemis-stomp-protocol]. Adding protocol support for= : STOMP > 11:49:34,401 INFO [org.apache.activemq.artemis.core.server] AMQ221043: P= rotocol module found: [artemis-openwire-protocol]. Adding protocol support = for: OPENWIRE > 11:49:34,403 INFO [org.apache.activemq.artemis.core.server] AMQ221043: P= rotocol module found: [artemis-hornetq-protocol]. Adding protocol support f= or: HORNETQ > 11:49:34,404 INFO [org.apache.activemq.artemis.core.server] AMQ221043: P= rotocol module found: [artemis-mqtt-protocol]. Adding protocol support for:= MQTT > 11:49:34,506 INFO [org.apache.activemq.artemis.core.server] AMQ221007: S= erver is now live > 11:49:34,506 INFO [org.apache.activemq.artemis.core.server] AMQ221001: A= pache ActiveMQ Artemis Message Broker version 1.1.0.jboss-SNAPSHOT [nodeID= =3De915a1c8-3d47-11e6-a0a1-3172e2bd12af]=20 > 11:49:34,606 INFO [org.apache.activemq.artemis.core.server] AMQ221003: t= rying to deploy queue jms.queue.97c12b14-0a31-4cb8-a1ad-5ba0217abb5f > 11:49:34,650 INFO [org.apache.activemq.artemis.core.server] AMQ221003: t= rying to deploy queue jms.queue.66bdf106-b409-4e3c-b70b-d9918ea812c3 > 11:49:34,830 WARN [org.apache.activemq.artemis.core.client] AMQ212037: C= onnection failure has been detected: AMQ119108: connections for user fakeUs= er closed by management [code=3DINTERNAL_ERROR] > 11:49:34,830 WARN [org.apache.activemq.artemis.core.server] AMQ222061: C= lient connection failed, clearing up resources for session e94bcd00-3d47-11= e6-a0a1-3172e2bd12af > 11:49:34,831 WARN [org.apache.activemq.artemis.core.server] AMQ222107: C= leared up resources for session e94bcd00-3d47-11e6-a0a1-3172e2bd12af > 11:49:34,846 WARN [org.apache.activemq.artemis.core.server] AMQ222061: C= lient connection failed, clearing up resources for session e94f9d91-3d47-11= e6-a0a1-3172e2bd12af > 11:49:34,848 WARN [org.apache.activemq.artemis.core.server] AMQ222107: C= leared up resources for session e94f9d91-3d47-11e6-a0a1-3172e2bd12af > 11:49:34,853 WARN [org.apache.activemq.artemis.jms.client] AMQ122000: I'= 'm closing a JMS connection you left open. Please make sure you close all J= MS connections explicitly before letting them go out of scope! see stacktra= ce to find out where it was created: java.lang.Exception > =09at org.apache.activemq.artemis.jms.client.ActiveMQConnection.(Ac= tiveMQConnection.java:155) [:] > =09at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.cr= eateConnectionInternal(ActiveMQConnectionFactory.java:750) [:] > =09at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.cr= eateConnection(ActiveMQConnectionFactory.java:233) [:] > =09at org.apache.activemq.artemis.tests.integration.jms.server.management= .JMSServerControl2Test.doCloseConnectionsForUser(JMSServerControl2Test.java= :1110) [:] > =09at org.apache.activemq.artemis.tests.integration.jms.server.management= .JMSServerControl2Test.testCloseConnectionsForUserForInVM(JMSServerControl2= Test.java:143) [:] > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar= :1.8.0-internal] > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:95) [rt.jar:1.8.0-internal] > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:55) [rt.jar:1.8.0-internal] > =09at java.lang.reflect.Method.invoke(Method.java:508) [rt.jar:2.6 (04-27= -2016)] > =09at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framewo= rkMethod.java:47) [junit-4.11.jar:] > =09at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveC= allable.java:12) [junit-4.11.jar:] > =09at org.junit.runners.model.FrameworkMethod.invokeExplosively(Framework= Method.java:44) [junit-4.11.jar:] > =09at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeM= ethod.java:17) [junit-4.11.jar:] > =09at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefore= s.java:26) [junit-4.11.jar:] > =09at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.= java:27) [junit-4.11.jar:] > =09at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:4= 8) [junit-4.11.jar:] > =09at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) [junit-= 4.11.jar:] > =09at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:4= 8) [junit-4.11.jar:] > =09at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:4= 8) [junit-4.11.jar:] > =09at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) [junit-= 4.11.jar:] > =09at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.11.jar= :] > =09at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [juni= t-4.11.jar:] > =09at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassR= unner.java:70) [junit-4.11.jar:] > =09at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassR= unner.java:50) [junit-4.11.jar:] > =09at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-= 4.11.jar:] > =09at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [ju= nit-4.11.jar:] > =09at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [= junit-4.11.jar:] > =09at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [ju= nit-4.11.jar:] > =09at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [j= unit-4.11.jar:] > =09at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.= 11.jar:] > =09at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provi= der.java:283) [surefire-junit4-2.18.1.jar:2.18.1] > =09at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JU= nit4Provider.java:173) [surefire-junit4-2.18.1.jar:2.18.1] > =09at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUni= t4Provider.java:153) [surefire-junit4-2.18.1.jar:2.18.1] > =09at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provid= er.java:128) [surefire-junit4-2.18.1.jar:2.18.1] > =09at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameC= lassLoader(ForkedBooter.java:203) [surefire-booter-2.18.1.jar:2.18.1] > =09at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fo= rkedBooter.java:155) [surefire-booter-2.18.1.jar:2.18.1] > =09at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.jav= a:103) [surefire-booter-2.18.1.jar:2.18.1] > {code} > Based on log it is clear that connection was closed by {{Finalizer}} befo= re the failure was caused by the test itself. Since {{connection}} variable= is not referenced in the code anymore, JVM concludes it can destroy the ob= ject. Especially IBM JDK does it very fast. > {code} > ... > Session session =3D connection.createSession(); > MessageConsumer messageConsumer =3D session.createConsumer(queue); > Connection connection2 =3D cf.createConnection(); > Session session2 =3D connection2.createSession(); > MessageConsumer messageConsumer2 =3D session2.createConsumer(queue2); > Assert.assertEquals(2, server.getConnectionCount()); > String[] remoteAddresses =3D control.listRemoteAddresses(); > Assert.assertEquals(2, remoteAddresses.length); > Assert.assertEquals(1, queueControl.getConsumerCount()); > Assert.assertEquals(1, queueControl2.getConsumerCount()); > final CountDownLatch exceptionLatch =3D new CountDownLatch(1); > connection.setExceptionListener(new ExceptionListener() { > @Override > public void onException(final JMSException e) { > exceptionLatch.countDown(); > } > }); > ... > // connection is not referenced anymore -> connection.finalize() > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)