hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dasha Boudnik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7058) Tests for truncate CLI
Date Sat, 07 Feb 2015 11:00:36 GMT

     [ 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

View raw message