[fix] Fix potential unhandled exception cause data inconsistency (#11029)
Co-authored-by: TsukiokaKogane <cby141994@gamil.com>
This commit is contained in:
@ -934,7 +934,11 @@ public class DatabaseTransactionMgr {
|
||||
LOG.debug("after set transaction {} to visible", transactionState);
|
||||
} finally {
|
||||
writeUnlock();
|
||||
transactionState.afterStateTransform(TransactionStatus.VISIBLE, txnOperated);
|
||||
try {
|
||||
transactionState.afterStateTransform(TransactionStatus.VISIBLE, txnOperated);
|
||||
} catch (UserException e) {
|
||||
LOG.warn("afterStateTransform txn {} failed. msg: {}", transactionId, e.getMessage());
|
||||
}
|
||||
}
|
||||
updateCatalogAfterVisible(transactionState, db);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user