AntonRoskvist commented on code in PR #4705:
URL: https://github.com/apache/activemq-artemis/pull/4705#discussion_r1465440403


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/RemoteQueueBindingImpl.java:
##########
@@ -242,7 +243,10 @@ public synchronized void removeConsumer(final SimpleString 
filterString) throws
          }
       }
 
-      consumerCount--;
+      if (--consumerCount < 0) {
+         ActiveMQServerLogger.LOGGER.consumerCountError("Tried to decrement 
consumer count below 0: " + this);

Review Comment:
   It is not strictly necessary no, I can remove it or add some debug logging



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to