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


##########
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:
   Is this new error necessary?
   
   
   I have been trying to use more log.debug for things not really pertaining to 
the user.



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