Re: CDC and schema disagreement

2024-09-24 Thread Bowen Song via user
Thanks for looking into this. Jira ticket CASSANDRA-19948 has been created for this. On 23/09/2024 16:59, Josh McKenzie wrote: Yeah; think that would need to live in `AlterTableStatement.java` in probably `#AlterOptions`. There's guard

Re: CDC and schema disagreement

2024-09-23 Thread Josh McKenzie
Yeah; think that would need to live in `AlterTableStatement.java` in probably `#AlterOptions`. There's guardrail validation in there for gc_grace, mv's, replication strategies, and compression on 4.1 but I'm not seeing any guardrail for CDC. Could you open a JIRA for that Bowen? Might even be o

Re: CDC and schema disagreement

2024-09-23 Thread Josh McKenzie
I wouldn't be surprised if we don't have logic in place to handle that disjoint (DDL for disabled .yaml property) at least in the case of CDC. It's been the better part of a decade since that first impl but I don't have any recollection of that logic being in there. Let me take a quick look at

Re: CDC and schema disagreement

2024-09-20 Thread Štefan Miklošovič
Thank you for reporting this. I may check next week more closely and let you know. On Fri, Sep 20, 2024 at 5:43 PM Bowen Song via user < user@cassandra.apache.org> wrote: > Hi all, > > I suspect that I've ran into a bug (or two). > > On Cassandra 4.1.1, when `cdc_enabled` in the cassandra.yaml fi

CDC and schema disagreement

2024-09-20 Thread Bowen Song via user
Hi all, I suspect that I've ran into a bug (or two). On Cassandra 4.1.1, when `cdc_enabled` in the cassandra.yaml file is set to `false` on at least one node in the cluster, and then the `ALTER TABLE ... WITH cdc=...` statement was run against that node, the cluster will end up in the schema