You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Hanisha Koneru (Jira)" <ji...@apache.org> on 2020/10/06 22:36:00 UTC

[jira] [Created] (HDDS-4315) Use Epoch to generate unique ObjectIDs

Hanisha Koneru created HDDS-4315:
------------------------------------

             Summary: Use Epoch to generate unique ObjectIDs
                 Key: HDDS-4315
                 URL: https://issues.apache.org/jira/browse/HDDS-4315
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
          Components: Ozone Manager
            Reporter: Hanisha Koneru
            Assignee: Hanisha Koneru


In a non-Ratis OM, the transaction index used to generate ObjectID is reset on OM restart. This can lead to duplicate ObjectIDs when the OM is restarted. ObjectIDs should be unique. 
For HDDS-2939 and NFS are some of the features which depend on ObjectIds being unique.

This Jira aims to introduce an epoch number in OM which is incremented on OM restarts. The epoch is persisted on disk. This epoch will be used to set the first 16 bits of the objectID to ensure that objectIDs are unique even after OM restart.

The highest epoch number is reserved for transactions coming through ratis. This will take care of the scenario where OM ratis is enabled on an existing cluster. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org