Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Need to implement Txn state map which contains txId -> (txState, txCoordinatorAdress, commitTimestamp).
- This map will be located on all nodes in replication group (primary and followers) in PartitionReplicaListener and PartitionListener.
- Updated on ReadWriteReplicaRequest receiving in PartitionReplicaListener. Initially, only txCoordinatorAddress is known. The coordinator address is available in ReplicaManager on receiving a ReplicaRequest. Need to pass it to PartitionReplicaListener.
- PartitionReplicaListener use raftClient commands for replication. So need to send coordinator address with raft command and save it in PartitionListener.
- On TxCleanupReplicaRequest receiving need to set txState and commitTimestamp (if commited).
Txn state map optimizes write intent resolution. If commitTs <= readTs then RO transaction treat a write intent as committed.
Attachments
Issue Links
- is duplicated by
-
IGNITE-20033 Implement local txnStateMap
- Resolved