hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Youngjoon Kim (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12802) local FileContext does not rename .crc file
Date Thu, 16 Jun 2016 09:59:05 GMT

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

Youngjoon Kim commented on HADOOP-12802:
----------------------------------------

No, I can reproduce the bug in trunk. I've added test cases to my fork([link|https://github.com/y0un5/hadoop/commit/f281d82097d27d2a0f60bab29173e183db788382]).
TestFileContextDeleteOnExit#testRenameCrc() is for the local FileContext, TestLocalFileSystem#testRenameCrc()
is for the local FileSystem.
TestLocalFileSystem#testRenameCrc() succeeds, but TestFileContextDeleteOnExit#testRenameCrc()
fails.

> local FileContext does not rename .crc file
> -------------------------------------------
>
>                 Key: HADOOP-12802
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12802
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.2
>            Reporter: Youngjoon Kim
>
> After run the following code, "old" file is renamed to "new", but ".old.crc" is not renamed
to ".new.crc"
> {code}
> Path oldPath = new Path("/tmp/old");
> Path newPath = new Path("/tmp/new");
> Configuration conf = new Configuration();
> FileContext fc = FileContext.getLocalFSFileContext(conf);
> FSDataOutputStream out = fc.create(oldPath, EnumSet.of(CreateFlag.CREATE));
> out.close();
> fc.rename(oldPath, newPath);
> {code}
> On the other hand, local FileSystem successfully renames .crc file.
> {code}
> Path oldPath = new Path("/tmp/old");
> Path newPath = new Path("/tmp/new");
> Configuration conf = new Configuration();
> FileSystem fs = FileSystem.getLocal(conf);
> FSDataOutputStream out = fs.create(oldPath);
> out.close();
> fs.rename(oldPath, newPath);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message