hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10482) truncate will fail when we use viewFS.
Date Fri, 03 Jun 2016 08:57:59 GMT
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.

  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);

 *Path should be like below:* 
{{return res.targetFileSystem.truncate(f, newLength);}}  *should be*  {{return res.targetFileSystem.truncate(res.remainingPath,

This message was sent by Atlassian JIRA

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

View raw message