[
https://issues.apache.org/jira/browse/HDFS-10655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395967#comment-15395967
]
Daryn Sharp commented on HDFS-10655:
------------------------------------
The only caller of the method with less than the full component length is
{{verifyFsLimitsForRename}}, and then only used for exception messages. I'm
not sure the trailing slash was intended, or if it was, that it matters?
Adding the trailing slash will make it less useful for the general use-case to
more extensively use this method. I can add a boolean to preserve this dubious
behavior if you'd like.
> Fix path related byte array conversion bugs
> -------------------------------------------
>
> Key: HDFS-10655
> URL: https://issues.apache.org/jira/browse/HDFS-10655
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Attachments: HDFS-10655.patch, HDFS-10655.patch
>
>
> {{DFSUtil.bytes2ByteArray}} does not always properly handle runs of multiple
> separators, nor does it handle relative paths correctly.
> {{DFSUtil.byteArray2PathString}} does not rebuild the path correctly unless
> the specified range is the entire component array.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]