[ https://issues.apache.org/jira/browse/QPID-7593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith Wall updated QPID-7593: ----------------------------- Affects Version/s: qpid-java-7.0.0 > Abnormally ending an AMQP1.0 connection with consumer leaks the connection, > session and objects related to the consumer > ----------------------------------------------------------------------------------------------------------------------- > > Key: QPID-7593 > URL: https://issues.apache.org/jira/browse/QPID-7593 > Project: Qpid > Issue Type: Bug > Components: Java Broker > Affects Versions: qpid-java-7.0.0 > Reporter: Keith Wall > Fix For: qpid-java-7.0.0 > > Attachments: Screen Shot 2016-12-20 at 08.16.37.png > > > If I run the following code, jvisualvm shows that the object that underlies > the AMQP1.0 Connection, Session and Consumer are leaked. > The GC root is the QueueConsumerNodeList associated with the > Queue/QueueConsumerManager. The node the tail and is in the deleted state > and will be eventually scavenged (once new consumers join the queue). This > is common with the other protocols and I believe this aspect is as designed. > However, I think the fact that the Connections/Session/ConsumerTarget remains > referenced is a defect. It shows us that the ConsumerTarget_1.0 > (org/apache/qpid/server/consumer/AbstractConsumerTarget.java:284) is not > being closed. Other protocols don't show this same defect. > {code:java} > Properties properties = new Properties(); > properties.load(resourceAsStream); > Context context = new InitialContext(properties); > ConnectionFactory connectionFactory = (ConnectionFactory) > context.lookup("qpidConnectionfactory"); > Connection connection = connectionFactory.createConnection(); > connection.start(); > Session session = connection.createSession(false, > Session.AUTO_ACKNOWLEDGE); > Destination destination = (Destination) context.lookup("myqueue"); > MessageConsumer messageConsumer = > session.createConsumer(destination); > if (true) System.exit(1); > {code} > I expect this defect does not appear in release versions of the product. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org