gaozhangmin commented on code in PR #3650:
URL: https://github.com/apache/bookkeeper/pull/3650#discussion_r1025943117
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Journal.java:
##########
@@ -1127,7 +1127,6 @@ journalFormatVersionToWrite, getBufferedChannelBuilder(),
qe = localQueueEntries.removeFirst();
dequeueStartTime = MathUtils.nowInNano();
busyStartTime = dequeueStartTime;
- journalStats.getJournalQueueSize().dec();
Review Comment:
Here we don't need to decrease queue size, the queue size is decreased here.
```
if (qe != null) {
journalStats.getJournalQueueSize().dec();
journalStats.getJournalQueueStats()
.registerSuccessfulEvent(MathUtils.elapsedNanos(qe.enqueueTime),
TimeUnit.NANOSECONDS);
}
```
--
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]