ARTEMIS-945 - fix test and queue delete
https://issues.apache.org/jira/browse/ARTEMIS-945
This commit is contained in:
parent
0df002597f
commit
d937e8a8e1
|
@ -34,6 +34,13 @@ public class QueueManagerImpl implements QueueManager {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
Queue queue = server.locateQueue(queueName);
|
Queue queue = server.locateQueue(queueName);
|
||||||
|
//the queue may already have been deleted and this is a result of that
|
||||||
|
if (queue == null) {
|
||||||
|
if (ActiveMQServerLogger.LOGGER.isDebugEnabled()) {
|
||||||
|
ActiveMQServerLogger.LOGGER.debug("pno queue to delete \"" + queueName + ".\"");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
SimpleString address = queue.getAddress();
|
SimpleString address = queue.getAddress();
|
||||||
AddressSettings settings = server.getAddressSettingsRepository().getMatch(address.toString());
|
AddressSettings settings = server.getAddressSettingsRepository().getMatch(address.toString());
|
||||||
long consumerCount = queue.getConsumerCount();
|
long consumerCount = queue.getConsumerCount();
|
||||||
|
|
|
@ -830,7 +830,7 @@ public class ProtonTest extends ProtonTestBase {
|
||||||
Wait.waitFor(new Wait.Condition() {
|
Wait.waitFor(new Wait.Condition() {
|
||||||
@Override
|
@Override
|
||||||
public boolean isSatisfied() throws Exception {
|
public boolean isSatisfied() throws Exception {
|
||||||
return amqpConnection.isClosed();
|
return receiver.isClosed();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
assertTrue(receiver.isClosed());
|
assertTrue(receiver.isClosed());
|
||||||
|
|
Loading…
Reference in New Issue