You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chris Goffinet (JIRA)" <ji...@apache.org> on 2010/03/14 08:25:27 UTC
[jira] Created: (CASSANDRA-892) Hinted Handoff can send key from
different CFs to target
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.
[jira] Updated: (CASSANDRA-892) Hinted Handoff can send key from
different CFs to target
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-892:
-------------------------------------
Fix Version/s: 0.7
> 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
> Fix For: 0.7
>
>
> 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.