1. 程式人生 > >The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.

The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.

同事 soft 特意 存儲過程 led 重現 distrib 思路 ace

同事反饋一個系統在運行一個存儲過程時遇到了下面錯誤:

Msg 1206, Level 18, State 169, Procedure xxxxxx, Line 118
The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.


費了九牛二虎之力才定位到是我們一個作業把對應的會話給Kill掉了(此作業按條件Kill掉那些阻塞其它會話的會話)。今天在測試服務器特意重現、測試、驗證了這個問題。特此記錄一下!因為這種分布式事務的問題確實不好定位,記錄此案例,只是為遇到這種問題時提供一個思路!

The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.