NO-JIRA ignore exception when deleting temp queue

This commit is contained in:
Justin Bertram 2018-03-06 11:29:24 -06:00 committed by Clebert Suconic
parent e82b085846
commit b638748ae3
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}