You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2020/05/05 16:17:28 UTC
[GitHub] [activemq-artemis] clebertsuconic commented on a change in pull request #3117: NO-JIRA Wrong key used for removal.
clebertsuconic commented on a change in pull request #3117:
URL: https://github.com/apache/activemq-artemis/pull/3117#discussion_r420234721
##########
File path: artemis-server/src/main/java/org/apache/activemq/artemis/core/server/federation/address/FederatedAddress.java
##########
@@ -242,7 +242,7 @@ public void beforeRemoveBinding(SimpleString uniqueName, Transaction tx, boolean
if (entry.getKey().getDivert().getForwardAddress().equals(queue.getAddress())) {
final AddressInfo addressInfo = server.getPostOffice().getAddressInfo(binding.getAddress());
//check if the queue has been tracked by this divert and if so remove the consumer
- if (entry.getValue().remove(queue)) {
+ if (entry.getValue().remove(queue.getAddress())) {
Review comment:
The best would be to have a JIRA, and a test exposing it.
if you can't do it, just open the JIRA, and reference this as the patch, with some instructions on how to hit the issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org