hadoop-common-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] [Updated] (HADOOP-13236) truncate will fail when we use viewfilesystem
Date Thu, 20 Oct 2016 16:28:58 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-13236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brahma Reddy Battula updated HADOOP-13236:
------------------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 3.0.0-alpha2
                   2.7.4
                   2.8.0
           Status: Resolved  (was: Patch Available)

Committed to trunk,branch-2,branch-2.8 and branch-2.7..

[~arpitagarwal] Thanks a lot for your review..

> 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message