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

Sylvain Lebresne commented on CASSANDRA-9282:
---------------------------------------------

bq. the drivers should warn on these

On top of Jonathan's comment, it's worth noting that drivers can't do it in all 
case. That is, if the batch is provided as a query string, drivers don't parse 
and thus don't know what it is. Which is not to say that drivers can't warn 
when possible, just that there is sense in doing it server side if we want to 
make sure people do get the warning.

> Warn on unlogged batches
> ------------------------
>
>                 Key: CASSANDRA-9282
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9282
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Jonathan Ellis
>            Assignee: T Jake Luciani
>             Fix For: 2.1.x
>
>
> At least until CASSANDRA-8303 is done and we can block them entirely, we 
> should log a warning when unlogged batches across multiple partition keys are 
> used.  This could either be done by backporting NoSpamLogger and blindly 
> logging every time, or we could add a threshold and warn when more than 10 
> keys are seen.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to