Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 138A61012C for ; Fri, 16 Jan 2015 22:23:34 +0000 (UTC) Received: (qmail 88944 invoked by uid 500); 16 Jan 2015 22:23:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 88889 invoked by uid 500); 16 Jan 2015 22:23:35 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 88875 invoked by uid 99); 16 Jan 2015 22:23:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 22:23:35 +0000 Date: Fri, 16 Jan 2015 22:23:35 +0000 (UTC) From: "Konstantin Shvachko (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7057) Expose truncate API via FileSystem and shell command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280913#comment-14280913 ] Konstantin Shvachko commented on HDFS-7057: ------------------------------------------- Looks good to me. Could you also add a unit test, which tests the Truncate command with and without -w option. I think we can either add such test into TestFileTruncate or TestDFSShell. > Expose truncate API via FileSystem and shell command > ---------------------------------------------------- > > Key: HDFS-7057 > URL: https://issues.apache.org/jira/browse/HDFS-7057 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Affects Versions: 3.0.0 > Reporter: Konstantin Shvachko > Assignee: Milan Desai > Attachments: HDFS-7057-2.patch, HDFS-7057-3.patch, HDFS-7057.patch > > > Add truncate operation to FileSystem and expose it to users via shell command. -- This message was sent by Atlassian JIRA (v6.3.4#6332)