[4.1][xa] stop tx before release tx for loosely coupled xa trans in heartbeat test
This commit is contained in:
@ -2141,6 +2141,9 @@ int ObXACtx::try_heartbeat()
|
|||||||
// exit only
|
// exit only
|
||||||
// no need to delete xa records
|
// no need to delete xa records
|
||||||
// if xa records exist, we can rely on garbage collection
|
// 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_();
|
(void)set_exiting_();
|
||||||
} else if (now > branch_info.last_hb_ts_ + XA_HB_THRESHOLD) {
|
} else if (now > branch_info.last_hb_ts_ + XA_HB_THRESHOLD) {
|
||||||
branch_info.unrespond_msg_cnt_++;
|
branch_info.unrespond_msg_cnt_++;
|
||||||
|
|||||||
Reference in New Issue
Block a user