cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-453) Added new sstable tool
Date Wed, 23 Sep 2009 04:00:15 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758571#action_12758571
] 

Jonathan Ellis commented on CASSANDRA-453:
------------------------------------------

add this to SSTableReader

    public void validate() throws IOException
    {
        SSTableScanner scanner = new SSTableScanner(this);
        while (scanner.hasNext())
        {
            IteratingRow row = scanner.next();
            logger.debug("validating " + row.getKey());
            ColumnFamily cf = row.getColumnFamily();
            logger.debug("validated " + getColumnComparator().getString(cf.getColumnNames()));
        }
    }

(I used this for CASSANDRA-452.)

Hooking this up as a standalone utility is left as an exercise for the reader. :)

> Added new sstable tool
> ----------------------
>
>                 Key: CASSANDRA-453
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-453
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Tools
>    Affects Versions: 0.5
>            Reporter: Sammy Yu
>            Assignee: Sammy Yu
>             Fix For: 0.5
>
>
> Add a offline sstable tool that can be used to validate the integrity of sstable and
gather information about it such as the # of keys.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message