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

Jeremiah Jordan commented on CASSANDRA-20600:
---------------------------------------------

bq. Thinking more about this, there is nothing accord specific here.  This is 
more that a schema change in the log is no longer valid.

Looking over the code, thanks for the pointer [~samt] it is actually an accord 
issue.  The accord checks are in apply() rather than validate().

[https://github.com/apache/cassandra/blob/d08c0d6fbbe46485ff34b38d138e70b9d8d21796/src/java/org/apache/cassandra/cql3/statements/schema/CreateTableStatement.java#L176-L181]

> DB Crashes on startup if accord tables exist but accord is disabled
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-20600
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20600
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Accord
>            Reporter: Jon Haddad
>            Priority: Normal
>
> We should at least have a clear message why the DB isn't starting instead of 
> an exception so the user knows this isn't a bug.
> I'm not sure if there's a better approach other than an error.  Backing out 
> of accord by disabling the config while there's tables seems like a 
> significant user error so preventing startup might be the only sane thing we 
> can do.
> {noformat}
> ERROR [main] 2025-04-25T14:01:08,040 CassandraDaemon.java:926 - Exception 
> encountered during startup
> java.lang.IllegalStateException: Can't dereference Success for a rejected 
> execution: INVALID: Cannot create table games.user_scores with transactional 
> mode full with accord.enabled set to false
>       at 
> org.apache.cassandra.tcm.Transformation$Rejected.success(Transformation.java:177)
>       at org.apache.cassandra.tcm.log.LogState.flatten(LogState.java:112)
>       at 
> org.apache.cassandra.tcm.log.LocalLog.replayPersisted(LocalLog.java:597)
>       at org.apache.cassandra.tcm.log.LocalLog.ready(LocalLog.java:679)
>       at 
> org.apache.cassandra.tcm.Startup.initializeAsNonCmsNode(Startup.java:162)
>       at org.apache.cassandra.tcm.Startup.initialize(Startup.java:110)
>       at org.apache.cassandra.tcm.Startup.initialize(Startup.java:91)
>       at 
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:274)
>       at 
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:745)
>       at 
> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:899)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to