You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/01 07:47:00 UTC
[GitHub] [pulsar] mattisonchao commented on a change in pull request #14501: Add log to track negtive unacked msg.
mattisonchao commented on a change in pull request #14501:
URL: https://github.com/apache/pulsar/pull/14501#discussion_r816519346
##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java
##########
@@ -947,6 +949,10 @@ private int addAndGetUnAckedMsgs(Consumer consumer, int ackedMessages) {
subscription.addUnAckedMessages(ackedMessages);
unackedMsgs = UNACKED_MESSAGES_UPDATER.addAndGet(consumer, ackedMessages);
}
+ if (unackedMsgs < 0 && ++negtiveUnackedMsgsCount % 10000 == 0) {
Review comment:
Would it be better to use the current system time to limit the number of log prints than an incremental variable?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org