congbobo184 opened a new pull request #14327:
URL: https://github.com/apache/pulsar/pull/14327
### Motivation
If individual ack batch message with transaction and abort this transaction,
we will redeliver this message. but this batch message some bit sit are acked
by another transaction and re consume this bit sit will produce
`TransactionConflictException`, we don't need to redeliver this bit sit witch
is acked by another transaction.
if batch have batch size 5
1. txn1 ack 0, 1 the ackSet is 00111
2. txn2 ack 2 3 4 the ack Set is 11000
3. abort txn2 redeliver this position is 00111
4. but now we don't filter txn1 ackSet so redeliver this position bitSet is
111111
### Modifications
When filter the message we should filter the bit sit witch is real ack or in
pendingAck state
### 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]