[ 
https://issues.apache.org/jira/browse/HADOOP-4806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654697#action_12654697
 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-4806:
------------------------------------------------

In LeaseManager.changeLease(...), the variable overwrite is not a regular 
expression pattern but is used as a regular expression pattern in
{code}
      final String newpath = oldpath.replaceFirst(overwrite, replaceBy);
{code}



> HDFS rename does not work correctly if src contains Java regular expression 
> special characters
> ----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4806
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4806
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.18.2
>            Reporter: Tsz Wo (Nicholas), SZE
>
> For examples,
> # create a file /a+b/foo but not close it
> # rename /a+b/foo to /a+b/bar/foo
> Then, the corresponding INodeFileUnderConstruction will be moved from 
> /a+b/foo to /a+b/bar/foo but the lease path remains unchanged.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to