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: [email protected]
For additional commands, e-mail: [email protected]