Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ public interface TransactionBuffer {
CompletableFuture<Void> closeAsync();

/**
* Close the buffer asynchronously.
* Check if the txn is aborted.
* TODO: To avoid broker oom, we will load the aborted txn from snapshot on demand.
* So we need the readPosition to check if the txn is loaded.
* @param txnID {@link TxnID} txnId.
* @param readPosition the persistent position of the txn message.
* @return the txnId is aborted.
* @return whether the txn is aborted.
*/
boolean isTxnAborted(TxnID txnID, PositionImpl readPosition);

Expand Down