Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 75826200BB6 for ; Fri, 21 Oct 2016 05:57:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 74038160AF2; Fri, 21 Oct 2016 03:57:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E3639160AE0 for ; Fri, 21 Oct 2016 05:57:00 +0200 (CEST) Received: (qmail 21097 invoked by uid 500); 21 Oct 2016 03:56:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 20572 invoked by uid 99); 21 Oct 2016 03:56:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2016 03:56:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C88762C0B04 for ; Fri, 21 Oct 2016 03:56:58 +0000 (UTC) Date: Fri, 21 Oct 2016 03:56:58 +0000 (UTC) From: "Brahma Reddy Battula (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13236) truncate will fail when we use viewfilesystem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 21 Oct 2016 03:57:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brahma Reddy Battula updated HADOOP-13236: ------------------------------------------ Status: Patch Available (was: Reopened) > 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-branch-2-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 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