You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "merlimat (via GitHub)" <gi...@apache.org> on 2026/10/17 06:02:44 UTC
Re: [PR] [fix][broker] Fix acked count calculation when acknowledging with transaction [pulsar]
merlimat commented on PR #25049:
URL: https://github.com/apache/pulsar/pull/25049#issuecomment-6230467605
Thanks @3pacccccc, and sorry this sat so long. The unacked-count part of this was fixed on master by #25528: the transactional path now only decrements when the pending ack actually exists, so your repro no longer goes negative. #25592 also changed the test you adjusted. Something small is still left, though: acks of positions that aren't pending still count toward `msgAckRate` (`ackedCount = 1` in `Consumer.individualAck`, in both the txn and non-txn branches). If you want to pick that up, a fresh PR against current master that counts only acks that matched a pending entry (Shared/Key_Shared) would be welcome. The typo fix in `PulsarClientException` is worth a tiny separate PR too. I'll close this one since it no longer applies.
--
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