You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tania S Engel (JIRA)" <ji...@apache.org> on 2018/06/01 20:15:00 UTC

[jira] [Commented] (CASSANDRA-10876) Alter behavior of batch WARN and fail on single partition batches

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

Tania S Engel commented on CASSANDRA-10876:
-------------------------------------------

In 3.11.1 we still see these warnings even when we are inserting into multiple tables with the same partition key. The comment above from Patrick seems to indicate a partition key is for one keyspace.table. But I thought a partition key was a value that hashed to the same value. Is it still a burden on the coordinator worthy of a warning if we do a batch insert to 4 tables with the same partition key ({color:#333333}Day{color})? For example if we do a batch insert into these 2 tables, is that considered a single partition insert and if so why is there a warning?

CREATE TABLE Log_User (Day timestamp, LogTime timeuuid, {color:#333333}UserID{color} int)  PRIMARY KEY ({color:#333333}Day {color}, UserID, LogTime)

CREATE TABLE Log_Event( Day timestamp, LogTime timeuuid, EventID  int) {color:#333333}PRIMARY KEY ({color}{color:#333333}Day {color}{color:#333333}, EventID , LogTime){color}

> Alter behavior of batch WARN and fail on single partition batches
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-10876
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10876
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Patrick McFadin
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>              Labels: lhf
>             Fix For: 3.6
>
>         Attachments: 10876.txt
>
>
> In an attempt to give operator insight into potentially harmful batch usage, Jiras were created to log WARN or fail on certain batch sizes. This ignores the single partition batch, which doesn't create the same issues as a multi-partition batch. 
> The proposal is to ignore size on single partition batch statements. 
> Reference:
> [CASSANDRA-6487|https://issues.apache.org/jira/browse/CASSANDRA-6487]
> [CASSANDRA-8011|https://issues.apache.org/jira/browse/CASSANDRA-8011]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org