hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5440) Extract the logic of handling delegation tokens in HftpFileSystem to the TokenAspect class
Date Tue, 12 Nov 2013 22:01:19 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13820527#comment-13820527
] 

Jing Zhao commented on HDFS-5440:
---------------------------------

After discussing with [~owen.omalley], looks like we still need to replicate the token and
set one of them with HDFS_DELEGATION_TOKEN kind, in order to keep the back compatibility.

Currently in trunk, branch-2 and branch-1.x, in the StreamFile servlet (in DN), after receiving
a HftpFileSystem request, the DN will rewrite the token kind to HDFS_DELEGATION_TOKEN. That's
why the current patch works fine with these branches. However, in older branch like 0.20.203,
the token kind will not be overwritten, thus this token will not be selected by the DFSClient
in later RPC call to NN. Thus the current patch will not work when communicating with such
old servers. 

> Extract the logic of handling delegation tokens in HftpFileSystem to the TokenAspect
class
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5440
>                 URL: https://issues.apache.org/jira/browse/HDFS-5440
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>         Attachments: HDFS-5440.000.patch, HDFS-5440.001.patch, HDFS-5440.002.patch
>
>
> The logic of handling delegation token in HftpFileSystem and WebHdfsFileSystem are mostly
identical. To simplify the code, this jira proposes to extract the common code into a new
class named TokenAspect.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message