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

Berenguer Blasi commented on CASSANDRA-15703:
---------------------------------------------

This should repro it, as per one internal customer issue investigation, but 
both current 3.11 and 4.0 succeed on bootstrapping the nodes
 
{noformat}
ccm create c15703
ccm populate -n 2
vi ~/.ccm/c15703/node1/resources/cassandra/conf/cassandra.yaml set 
cdc_enabled=true, auto_boostrap=true
vi ~/.ccm/c15703/node2/resources/cassandra/conf/cassandra.yaml set 
auto_boostrap=true, seeds=127.0.0.1
ccm node1 start
ccm node1 cqlsh
        CREATE KEYSPACE test WITH REPLICATION = {'class' : 'SimpleStrategy', 
'replication_factor' : 1};               
        CREATE TABLE test.foo (a int, b text, PRIMARY KEY(a)) WITH cdc=true;
        insert into test.foo (a, b) values (1, 'test');
ccm node1 stop
vi ~/.ccm/c15703/node1/resources/cassandra/conf/cassandra.yaml set 
cdc_enabled=false
ccm node1 start
ccm node2 start should fail
{noformat}

I can see in node2 logs how it does indeed bootstrap, there are no exceptions, 
nodetool status shows the ring, describing the table has cdc=true, cdc in yaml 
is false...

> When CDC is disabled bootstrapping breaks
> -----------------------------------------
>
>                 Key: CASSANDRA-15703
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15703
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Consistency/Bootstrap and Decommission
>            Reporter: T Jake Luciani
>            Priority: Normal
>             Fix For: 3.11.x
>
>
> Related to CASSANDRA-12697
> There is an edge case left over.  If a cluster had enabled CDC on a table 
> then subsequently set cdc=false, subsequent bootstraps break. 
>  
> This is because the cdc column is false on the existing nodes but null on the 
> bootstrapping node, causing the schema sha to never match.
>  
> There are a couple possible fixes:
>   1.  Since 12697 was only about upgrades we can serialize the cdc column IFF 
> the cluster nodes are all on the same version.
>   2.  We can force cdc=false on all tables where it's null.
>  
> I think #1 is probably simpler. #2 would probably cause more of the same 
> problem if nodes are not all updated with the fix.
>  
>   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to