[
https://issues.apache.org/jira/browse/CASSANDRA-21112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Capwell updated CASSANDRA-21112:
--------------------------------------
Since Version: 6.x
Source Control Link:
https://github.com/apache/cassandra/commit/86e024b416fd28357b082eda6b5652f54d8e64d2
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> 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
> Priority: Normal
> Fix For: 6.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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]