-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix][Transaction] Fix transaction pendingAckStore asyncMarkDelete (#…
…14974) ### Motivation When we only use transaction to ack message, a message per transaction, `cursor.asyncMarkDelete` will never be executed, because firstPosition and deletePosition both are init as metadataPositions.firstEntry().getKey(); And if only the firstkey need to delete, deletePosition also get metadataPositions.firstKey(); irstPosition == deletePosition, never call `cursor.asyncMarkDelete` ### Modification init firstPosition and deletePosition as PositionImpl.EARLIEST (cherry picked from commit 8a6ecd7)
- Loading branch information
1 parent
3594e42
commit ede1c6f
Showing
3 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters