[ 
https://issues.apache.org/jira/browse/CASSANDRA-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-2457:
----------------------------------------

    Attachment: 0001-Fix-batch_mutate-for-counters.patch

Attaching patch against 0.8.

Basically this makes SP.mutate() handle a list of mixed RowMutation and 
CounterMutation (but then each mutation use the right path). This is needed 
since a batch_mutate() can now mix those.

This has an unfortunate consequence however in that I don't think there is a 
way to distinguish the writeStats of standard insert of the ones of counter 
insert anymore, and thus this patch remove the latter ones (and count 
everything in writeStat).

> Batch_mutate is broken for counters
> -----------------------------------
>
>                 Key: CASSANDRA-2457
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2457
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>             Fix For: 0.8
>
>         Attachments: 0001-Fix-batch_mutate-for-counters.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> CASSANDRA-2384 allowed for batch_mutate to take counter and non counter 
> operation, but the code was not updated correctly to handle that case. As it 
> is, the code will use the first mutation in the batch list to decide whether 
> to apply the write code path of counter or not, and will thus break if those 
> are mixed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to