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 6D4E817D73 for ; Sat, 7 Feb 2015 11:00:36 +0000 (UTC) Received: (qmail 75907 invoked by uid 500); 7 Feb 2015 11:00:36 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 75841 invoked by uid 500); 7 Feb 2015 11:00:36 -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 75829 invoked by uid 99); 7 Feb 2015 11:00:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Feb 2015 11:00:36 +0000 Date: Sat, 7 Feb 2015 11:00:36 +0000 (UTC) From: "Dasha Boudnik (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-7058) Tests for truncate CLI 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-7058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dasha Boudnik updated HDFS-7058: -------------------------------- Attachment: HDFS-7058.patch Patch attached. I've included four variations of truncate: - truncate to small size - truncate to large (not much smaller than original file) size - truncate to size greater than actual file - truncate without waiting for block recovery When leaving out -w option (see last point above), clean-up cannot be performed without disrupting the test, so, instead, a directory with a name that is unlikely to be used by any other tests is created and left there. If anyone would suggest using a timestamp as the dir name instead, let me know; I didn't do that to avoid messing with TestCLI.java. Please let me know if I've missed any other ways to test truncate that we should include in this patch. Thanks! > Tests for truncate CLI > ---------------------- > > Key: HDFS-7058 > URL: https://issues.apache.org/jira/browse/HDFS-7058 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: test > Affects Versions: 3.0.0 > Reporter: Konstantin Shvachko > Assignee: Dasha Boudnik > Attachments: HDFS-7058.patch > > > Modify TestCLI to include general truncate tests. -- This message was sent by Atlassian JIRA (v6.3.4#6332)