tmqueue might deadlock when performing tpenqueue() or tpdequeue() in global transaction
|Priority:||Normal (Code 4)||Due date:|
When running tpenqueue() or tpdequeue() in global transaction with having large number of concurrent processes which are calling the queue space, the tmqueue might lock against initial tmsrv, due to fact that the main thread of tmqueue is asking tmsrv to enlist the transaction, while the tmsrv might have all busy slots with asking particular tmqueue for finalizing the transaction.
The solution would be make to defer tmqueue global transaction join, after call have moved to service thread pool. Thus notify pool will be able to complete the tmsrv calls.
#2 Updated by Lauris over 1 year ago
tmqueue binary has been updated, so that global transaction related registration tasks are moved to thread-pool instead of main thread. With this, in-flows now are separated i.e. tmsrv queue completion messages goes to one thread-pool (does not require global registration) and tpenqueue()/tpdequeue() global transaction requests are processed by other thread-pool. This approach solves the possibility of the deadlock.
Available from Enduro/X release 7.5.32+.