[ 
https://issues.apache.org/jira/browse/CASSANDRA-21112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Capwell updated CASSANDRA-21112:
--------------------------------------
     Bug Category: Parent values: Correctness(12982)Level 1 values: 
Unrecoverable Corruption / Loss(13161)
       Complexity: Low Hanging Fruit
    Discovered By: User Report
    Fix Version/s: 6.x
         Severity: Critical
           Status: Open  (was: Triage Needed)

> 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
>
>
> 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]

Reply via email to