You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2016/06/03 08:57:59 UTC
[jira] [Created] (HDFS-10482) truncate will fail when we use
viewFS.
Brahma Reddy Battula created HDFS-10482:
-------------------------------------------
Summary: truncate will fail when we use viewFS.
Key: HDFS-10482
URL: https://issues.apache.org/jira/browse/HDFS-10482
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Brahma Reddy Battula
Assignee: Brahma Reddy Battula
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: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org