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

Akira Ajisaka edited comment on HDFS-15286 at 4/27/20, 9:32 PM:
----------------------------------------------------------------

Committed this to trunk, branch-3.3, branch-3.3.0, branch-3.2, and branch-3.1.
I didn't cherry-pick to branch-2.10 and branch-2.9 because Java 7 cannot 
compile the test code.


was (Author: ajisakaa):
Committed this to trunk, branch-3.3, branch-3.3.0, branch-3.2, and branch-3.1.
I didn't cherry-pick to branch-2.10 and branch-2.9 because the test code does 
not compile with Java7.

> Concat on a same files deleting the file
> ----------------------------------------
>
>                 Key: HDFS-15286
>                 URL: https://issues.apache.org/jira/browse/HDFS-15286
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: hemanthboyina
>            Assignee: hemanthboyina
>            Priority: Critical
>             Fix For: 3.3.0, 3.1.4, 3.2.2
>
>         Attachments: HDFS-15286.001.patch, HDFS-15286.002.patch
>
>
> on performing concat on same file as source and target , if the file is an 
> inode reference
> {code:java}
> FSDirConcatOp#verifySrcFiles 
> if (srcINode == targetINode) {
>         throw new HadoopIllegalArgumentException("concat: the src file " + src
>             + " is the same with the target file " + targetIIP.getPath());
>   } {code}
> verifysrcfiles validates if the same file is source and target , but if the 
> file is an inoderefernce the if condition returns false
> because the srcInode is a reference and targetINode is INodefile



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to