cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Goffinet (JIRA)" <j...@apache.org>
Subject [jira] Created: (CASSANDRA-892) Hinted Handoff can send key from different CFs to target
Date Sun, 14 Mar 2010 07:25:27 GMT
Hinted Handoff can send key from different CFs to target
--------------------------------------------------------

                 Key: CASSANDRA-892
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-892
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.6
            Reporter: Chris Goffinet
            Priority: Minor


If a hint is created for X target, and a key is in multiple CF's, we collect the data for
both and send to target. Having HH on-disk specify the CF used for key would avoid this.

        Table table = Table.open(tableName);
        RowMutation rm = new RowMutation(tableName, key);
        for (ColumnFamilyStore cfstore : table.getColumnFamilyStores())
        {
            ColumnFamily cf = cfstore.getColumnFamily(new IdentityQueryFilter(key, new QueryPath(cfstore.getColumnFamilyName())));

            if (cf != null) {
                rm.add(cf);
            }
        }


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