[
https://issues.apache.org/jira/browse/CASSANDRA-13952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16206283#comment-16206283
]
Andy Tolbert edited comment on CASSANDRA-13952 at 10/16/17 5:48 PM:
--------------------------------------------------------------------
To clarify the intent of this error, should it be its own protocol error
({{CDC_WRITE_FAILURE}}) or should it be a new reason code on {{WRITE_FAILURE}}?
I think if the error only happens on the coordinator node a separate error
may make more sense, but if it can happen on any replica {{WRITE_FAILURE}}
would make more sense as with {{WRITE_FAILURE}} you get a mapping of failed
replicas with their failure codes.
was (Author: andrew.tolbert):
To clarify the intent of this error, should it be its own protocol error
({{CDC_WRITE_FAILURE}}) or should it be a new reason code on {{WRITE_FAILURE}}.
I think if the error only happens on the coordinator node a separate error
may make more sense, but if it can happen on any replica {{WRITE_FAILURE}}
would make more sense as with {{WRITE_FAILURE}} you get a mapping of failed
replicas with their failure codes.
> C* still sending WriteFailure instead of CDCWriteFailure
> --------------------------------------------------------
>
> Key: CASSANDRA-13952
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13952
> Project: Cassandra
> Issue Type: Bug
> Reporter: Jaume M
> Assignee: Jaume M
> Fix For: 4.0
>
>
> I've tested this setting setting cdc_total_space_in_mb: 1 and with the
> current python driver master
> {code}
> from cassandra.cluster import Cluster
> cluster = Cluster(protocol_version=5, allow_beta_protocol_version=True)
> session = cluster.connect()
> session.execute("""
> CREATE KEYSPACE IF NOT EXISTS %s
> WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '2'
> }
> """ % "query_per_range")
> session.execute("""
> CREATE TABLE IF NOT EXISTS query_per_range.mytable_int (
> key_one int,
> key_two int,
> col1 text,
> col2 text,
> PRIMARY KEY ((key_one, key_two), col1)
> ) WITH cdc=true;
> """)
> for i in range(10000000):
> session.execute("INSERT INTO query_per_range.mytable_int(key_one,
> key_two, col1, col2) VALUES (%s, %s, %s, %s)",
> (i, i, str(i), str(i)))
> {code}
> I'm receiving a {{WriteFailure}} every time but I was expecting a
> {{CDCWriteFailure}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]