From b638748ae366d613b1635a89df71c911ea704e61 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Tue, 6 Mar 2018 11:29:24 -0600 Subject: [PATCH] NO-JIRA ignore exception when deleting temp queue --- .../artemis/core/server/impl/TransientQueueManagerImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/TransientQueueManagerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/TransientQueueManagerImpl.java index ab14479fac..4985a7ec45 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/TransientQueueManagerImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/TransientQueueManagerImpl.java @@ -17,6 +17,7 @@ package org.apache.activemq.artemis.core.server.impl; import org.apache.activemq.artemis.api.core.ActiveMQException; +import org.apache.activemq.artemis.api.core.ActiveMQNonExistentQueueException; import org.apache.activemq.artemis.api.core.SimpleString; import org.apache.activemq.artemis.core.server.ActiveMQServer; import org.apache.activemq.artemis.core.server.ActiveMQServerLogger; @@ -40,6 +41,8 @@ public class TransientQueueManagerImpl extends ReferenceCounterUtil implements T try { server.destroyQueue(queueName, null, false); + } catch (ActiveMQNonExistentQueueException e) { + // ignore } catch (ActiveMQException e) { ActiveMQServerLogger.LOGGER.errorOnDeletingQueue(queueName.toString(), e); }