You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2009/09/23 06:00:15 UTC

[jira] Commented: (CASSANDRA-453) Added new sstable tool

    [ 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.