[ 
https://issues.apache.org/jira/browse/HDDS-3926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aravindan Vijayan updated HDDS-3926:
------------------------------------
    Description: 
Relying on Protobuf serialization for exact match is unreliable according to 
the docs. Hence, we have to move away from using proto.toByteArray() for on 
disk RocksDB keys. For more details, check parent JIRA.

In the case of the Ozone token identifier, it can be uniquely identified using 
the following fields.
* Issue Date
* Master Key ID
* Sequence Number

We can provide a simplified serialization method using the above 3 fields (in 
that order) to be used in the Token Identifier codec.

cc [~xyao]

  was:
Relying on Protobuf serialization for exact match is unreliable according to 
the docs. Hence, we have to move away from using proto.toByteArray() for on 
disk RocksDB keys. For more details, check parent JIRA.

cc [~xyao]


> Ozone Manager Token Identifier table should use in-house serialization rather 
> than rely on proto serialization for key.
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-3926
>                 URL: https://issues.apache.org/jira/browse/HDDS-3926
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>          Components: SCM
>            Reporter: Aravindan Vijayan
>            Assignee: Prashant Pogde
>            Priority: Major
>              Labels: upgrade-p0
>
> Relying on Protobuf serialization for exact match is unreliable according to 
> the docs. Hence, we have to move away from using proto.toByteArray() for on 
> disk RocksDB keys. For more details, check parent JIRA.
> In the case of the Ozone token identifier, it can be uniquely identified 
> using the following fields.
> * Issue Date
> * Master Key ID
> * Sequence Number
> We can provide a simplified serialization method using the above 3 fields (in 
> that order) to be used in the Token Identifier codec.
> cc [~xyao]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to