Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-17638

Implement Txn state map to optimize write intent resolution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      Need to implement Txn state map which contains txId -> (txState,  txCoordinatorAdress, commitTimestamp).

      1. This map will be located on all nodes in replication group (primary and followers) in PartitionReplicaListener and PartitionListener.
      2. 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. 
      3. PartitionReplicaListener use raftClient commands for replication. So need to send coordinator address with raft command and save it in PartitionListener.
      4. 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

          Activity

            People

              Unassigned Unassigned
              Sergey Uttsel Sergey Uttsel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: