[
https://issues.apache.org/jira/browse/HDFS-9071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904511#comment-14904511
]
J.Andreina commented on HDFS-9071:
----------------------------------
Thanks [~He Tianyi] for reporting this issue, that was a good catch.
bq. I've observed that chooseTargets in ReplicationWork may pass incomplete
srcPath (not starting with '/') to block placement policy.
I agree .
But i doubt , is there any specific reason for going ahead to choose target (in
ReplicationWork), after finding that srcpath is invalid/null , in the patch ?
> chooseTargets in ReplicationWork may pass incomplete srcPath
> ------------------------------------------------------------
>
> Key: HDFS-9071
> URL: https://issues.apache.org/jira/browse/HDFS-9071
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 2.6.0
> Reporter: He Tianyi
> Assignee: He Tianyi
> Attachments: HDFS-9071.0001.patch
>
>
> I've observed that chooseTargets in ReplicationWork may pass incomplete
> srcPath (not starting with '/') to block placement policy.
> It is possible that srcPath is extensively used in custom placement policy.
> In this case, the incomplete srcPath may further cause AssertionError if try
> to get INode with it inside placement policy.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)