cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaume M (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-13952) C* still sending WriteFailure instead of CDCWriteFailure
Date Wed, 11 Oct 2017 21:07:00 GMT
Jaume M created CASSANDRA-13952:
-----------------------------------

             Summary: 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


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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message