[
https://issues.apache.org/jira/browse/CASSANDRA-20477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939335#comment-17939335
]
David Capwell commented on CASSANDRA-20477:
-------------------------------------------
||Repo||Branch||Parent Branch||SHA||Status||
|https://github.com/dcapwell/cassandra.git|commit_remote_branch/CASSANDRA-20477-trunk-6477241D-38CD-43C1-B498-746FBF1B508F|trunk|8d97a0e2b0ca5726b04ca8a5d0bb910f9cda638b|Unstable
Failed Builds:
||Build||Result||Reason||
| dependency_check | unknown | dependency-check results are missing
|
| python-dtests | fail | Test
largecolumn_test.TestLargeColumn::largecolumn_test.py::TestLargeColumn::test_cleanup
failed,Tes |
> Add support in CAS for -= on numeric types, and fixed improper handling of
> empty bytes which lead to NPE
> --------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-20477
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20477
> Project: Apache Cassandra
> Issue Type: New Feature
> Components: Feature/Lightweight Transactions, Test/fuzz
> Reporter: David Capwell
> Assignee: David Capwell
> Priority: Normal
> Fix For: 5.x
>
> Attachments:
> ci_summary-trunk-8d97a0e2b0ca5726b04ca8a5d0bb910f9cda638b.html,
> result_details-trunk-8d97a0e2b0ca5726b04ca8a5d0bb910f9cda638b.tar.gz
>
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> CAS supports += on numeric types but -= was only supported for counters!
> Should add support so this logic is symmetrical.
> Existing += logic would also generate a NPE if you wrote to a row with empty
> bytes or you try to increment using empty bytes.
> {code}
> ERROR [node1_Native-Transport-Requests-1] node1 2025-03-21 15:29:01,882
> ErrorMessage.java:457 - Unexpected exception during request
> java.lang.NullPointerException: null
> at
> org.apache.cassandra.db.marshal.IntegerType.toBigInteger(IntegerType.java:520)
> at org.apache.cassandra.db.marshal.IntegerType.add(IntegerType.java:525)
> at
> org.apache.cassandra.cql3.terms.Constants$Adder.execute(Constants.java:496)
> {code}
> In making these changes we should also update the existing AST Harry model to
> support CAS operations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]