Description
Support transaction suspend()\resume() operations for pessimistic transactions. Resume can be called in another thread.
But there is a problem: Imagine, we started pessimistic transaction in thread T1 and then perform put operation, which leads to sending GridDistributedLockRequest to another node. Lock request contains thread id of the transaction. Then we call suspend, resume in another thread and we also must send messages to other nodes to change thread id.
It seems complicated task.It’s better to get rid of sending thread id to the nodes.
We can use transaction xid on other nodes instead of thread id. Xid is sent to nodes in GridDistributedLockRequest#nearXidVer
Proposed solution : On remote nodes instead of thread id of near transaction GridDistributedLockRequest#threadId use its xid GridDistributedLockRequest#nearXidVer.
Remove usages of near transaction's thread id on remote nodes.
Attachments
Issue Links
- is related to
-
IGNITE-9410 Add transactions support to thin clients
- Resolved
- relates to
-
IGNITE-8389 Get rid of thread ID in MVCC candidate
- Open
- links to