ARTEMIS-4125 Fixing AutoCreate Topics remove of the address

This is fixing AutoCreateJmsDestinationTest::testAutoCreateOnSubscribeToTopic
This commit is contained in:
Clebert Suconic 2023-01-12 11:32:10 -05:00 committed by Justin Bertram
parent add0000165
commit c231e6a643
1 changed files with 2 additions and 1 deletions

View File

@ -1132,7 +1132,8 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
return;
}
logger.debug("deleting temporary queue {}", bindingName);
server.destroyQueue(bindingName, null, false, false, server.getAddressInfo(binding.getAddress()).isTemporary());
AddressInfo addressInfo = server.getAddressInfo(binding.getAddress());
server.destroyQueue(bindingName, null, false, false, addressInfo == null || addressInfo.isTemporary() || addressInfo.isAutoCreated());
if (observer != null) {
observer.tempQueueDeleted(bindingName);
}