[
https://issues.apache.org/jira/browse/HDFS-11026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15746115#comment-15746115
]
Chris Douglas commented on HDFS-11026:
--------------------------------------
bq. Why do we need to upgrade the client to be aware of PB block tokens?
They are opaque to the user, but {{TokenSelector}}, {{SecretManager}} and other
client modules need to interpret some of its fields/attributes. We can't change
the encoding without breaking old clients.
bq. To be concrete, will a 2.6.0 client be able to talk to a 3.0 cluster
issuing PB block tokens?
Not unless the 3.0 server is configured to issue PB tokens, understands it's
speaking to a 2.6 client, and it sends the token in the legacy format. Servers
should understand tokens written in either encoding, with this change; this is
the "dual decode" support that [~daryn]
[referred|https://issues.apache.org/jira/browse/HDFS-11026?focusedCommentId=15588835&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15588835]
to above.
> Convert BlockTokenIdentifier to use Protobuf
> --------------------------------------------
>
> Key: HDFS-11026
> URL: https://issues.apache.org/jira/browse/HDFS-11026
> Project: Hadoop HDFS
> Issue Type: Task
> Components: hdfs, hdfs-client
> Affects Versions: 2.9.0, 3.0.0-alpha1
> Reporter: Ewan Higgs
> Fix For: 3.0.0-alpha2
>
> Attachments: HDFS-11026.002.patch, HDFS-11026.003.patch,
> blocktokenidentifier-protobuf.patch
>
>
> {{BlockTokenIdentifier}} currently uses a {{DataInput}}/{{DataOutput}}
> (basically a {{byte[]}}) and manual serialization to get data into and out of
> the encrypted buffer (in {{BlockKeyProto}}). Other TokenIdentifiers (e.g.
> {{ContainerTokenIdentifier}}, {{AMRMTokenIdentifier}}) use Protobuf. The
> {{BlockTokenIdenfitier}} should use Protobuf as well so it can be expanded
> more easily and will be consistent with the rest of the system.
> NB: Release of this will require a version update since 2.8.x won't be able
> to decipher {{BlockKeyProto.keyBytes}} from 2.8.y.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]