[4.1][xa] stop tx before release tx for loosely coupled xa trans in heartbeat test

This commit is contained in:
obdev
2022-11-30 07:06:36 +00:00
committed by ob-robot
parent 69d9941a08
commit c4a040967a

View File

@ -2141,6 +2141,9 @@ int ObXACtx::try_heartbeat()
// exit only
// no need to delete xa records
// if xa records exist, we can rely on garbage collection
if (OB_FAIL(MTL(ObTransService*)->stop_tx(*tx_desc_))) {
TRANS_LOG(WARN, "fail to stop transaction", K(ret), K(*this));
}
(void)set_exiting_();
} else if (now > branch_info.last_hb_ts_ + XA_HB_THRESHOLD) {
branch_info.unrespond_msg_cnt_++;