[
https://issues.apache.org/jira/browse/HADOOP-13236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592500#comment-15592500
]
Wei-Chiu Chuang commented on HADOOP-13236:
------------------------------------------
Branch-2 does not compile either
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:11 min
[INFO] Finished at: 2016-10-20T10:54:51-07:00
[INFO] Final Memory: 138M/1545M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
(default-testCompile) on project hadoop-hdfs: Compilation failure
[ERROR]
/Users/weichiu/sandbox/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemWithTruncate.java:[112,58]
local variable hdfFilepath is accessed from within inner class; needs to be
declared final
[ERROR] -> [Help 1]
[ERROR]
> truncate will fail when we use viewfilesystem
> ---------------------------------------------
>
> Key: HADOOP-13236
> URL: https://issues.apache.org/jira/browse/HADOOP-13236
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Brahma Reddy Battula
> Assignee: Brahma Reddy Battula
> Fix For: 2.8.0, 2.7.4, 3.0.0-alpha2
>
> Attachments: HADOOP-13236-002.patch, HADOOP-13236-003.patch,
> HADOOP-13236.patch
>
>
> truncate will fail when use viewFS.
> {code}
> @Override
> public boolean truncate(final Path f, final long newLength)
> throws IOException {
> InodeTree.ResolveResult<FileSystem> res =
> fsState.resolve(getUriPath(f), true);
> return res.targetFileSystem.truncate(f, newLength);
> }
> {code}
> *Path should be like below:*
> {{return res.targetFileSystem.truncate(f, newLength);}} *should be*
> {{return res.targetFileSystem.truncate(res.remainingPath, newLength);}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]