congbobo184 opened a new pull request, #17016:
URL: https://github.com/apache/pulsar/pull/17016
issue:
reproduce:
1. redeliver one consumer received message of a batch message, will remove
this message from this consumer pending acks
2. if this message is removed and doesn't redeliver to another consumer or
this consumer, we ack another message in the same batch
3. to compute the consumer unackedCount will get an incorrect batch size,
because the message don't in any consumer pending acks
### Motivation
get correct batch size to compute the consumer unackedCount
### Modification
use the correct batch size from the `messageIdDate`
### Verifying this change
add the test
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs
/ not documented)
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup
issue for adding the documentation
--
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]