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 @@ -425,6 +425,8 @@ public void commitTransactionWithoutLock(long dbId, List<Table> tableList, long
}
commitTransactionWithoutLock(dbId, tableList, transactionId, tabletCommitInfos, txnCommitAttachment, false,
mowTableList, backendToPartitionInfos);
// clear signature after commit succeeds
clearTxnLastSignature(dbId, transactionId);
} catch (Exception e) {
if (!mowTableList.isEmpty()) {
LOG.warn("commit txn {} failed, release delete bitmap lock, catch exception {}", transactionId,
Expand Down Expand Up @@ -1491,6 +1493,8 @@ public boolean commitAndPublishTransaction(DatabaseIf db, long transactionId,
}
commitTransactionWithSubTxns(db.getId(), tableList, transactionId, subTransactionStates, mowTableList,
backendToPartitionInfos);
// clear signature after commit succeeds
clearTxnLastSignature(db.getId(), transactionId);
} catch (Exception e) {
if (!mowTableList.isEmpty()) {
LOG.warn("commit txn {} failed, release delete bitmap lock, catch exception {}", transactionId,
Expand Down Expand Up @@ -1671,6 +1675,8 @@ public boolean commitAndPublishTransaction(DatabaseIf db, List<Table> tableList,
beforeCommitTransaction(tableList, transactionId, timeoutMillis);
try {
commitTransactionWithoutLock(db.getId(), tableList, transactionId, tabletCommitInfos, txnCommitAttachment);
// Only clear signature after commit succeeds, as BE may retry on failure
clearTxnLastSignature(db.getId(), transactionId);
} finally {
stopWatch.stop();
long costTimeMs = stopWatch.getTime();
Expand Down Expand Up @@ -1738,6 +1744,7 @@ public void abortTransaction(Long dbId, Long transactionId, String reason,
abortTxnResponse = abortTransactionImpl(dbId, transactionId, reason, null);
} finally {
handleAfterAbort(abortTxnResponse, txnCommitAttachment, transactionId);
clearTxnLastSignature(dbId, transactionId);
}
}

Expand Down