You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Roman Puchkovskiy (Jira)" <ji...@apache.org> on 2023/04/21 14:20:00 UTC

[jira] [Created] (IGNITE-19344) Generate unique txId prefix per node

Roman Puchkovskiy created IGNITE-19344:
------------------------------------------

             Summary: Generate unique txId prefix per node
                 Key: IGNITE-19344
                 URL: https://issues.apache.org/jira/browse/IGNITE-19344
             Project: Ignite
          Issue Type: Improvement
            Reporter: Roman Puchkovskiy
             Fix For: 3.0.0-beta2


We need txId (transaction ID)  to have the following properties:
 # Contain beginTs inside it so that we can extract beginTs from txId
 # txId must be globally unique
 # Its length must be 128 bits (to fit in UUID) - this requirement comes from the current implementation and it's not clear why exactly we need it

Current approach is to construct txId as a concatenation of txId prefix (aka nodeId) and beginTs taken as HLC.now() on the node that generates the txId. txId prefix must be unique among all coordinators. If we make it unique among all nodes in the logical topology, this solves our problem.

TBC



--
This message was sent by Atlassian Jira
(v8.20.10#820010)