You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2026/01/09 19:02:00 UTC

[jira] [Created] (CASSANDRA-21112) NPE when trying to use CAS on local system tables

David Capwell created CASSANDRA-21112:
-----------------------------------------

             Summary: NPE when trying to use CAS on local system tables
                 Key: CASSANDRA-21112
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21112
             Project: Apache Cassandra
          Issue Type: Bug
          Components: Accord
            Reporter: David Capwell
            Assignee: David Capwell


When we are doing a CAS operation we need to figure out what protocol is used, and if the table isn’t known to TCM we fall back to paxos.  This happens when you call local system tables as they are not in TCM, but the return was missed so we try to infer the protocol from the null TableMetadata and fail with a NPE

{code}
ERROR [Native-Transport-Requests-1] 2026-01-08T21:50:08,918 ErrorMessage.java:486 - Unexpected exception during request
java.lang.NullPointerException: null
	at org.apache.cassandra.service.consensus.migration.ConsensusRequestRouter.routeAndMaybeMigrate(ConsensusRequestRouter.java:216)
	at org.apache.cassandra.service.consensus.migration.ConsensusRequestRouter.routeAndMaybeMigrate(ConsensusRequestRouter.java:195)
	at org.apache.cassandra.service.StorageProxy.consensusRouting(StorageProxy.java:2195)
	at org.apache.cassandra.service.StorageProxy.cas(StorageProxy.java:387)
	at org.apache.cassandra.cql3.statements.ModificationStatement.executeWithCondition(ModificationStatement.java:672)
	at org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:630)
{code}



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

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