[
https://issues.apache.org/jira/browse/CASSANDRA-20443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Capwell updated CASSANDRA-20443:
--------------------------------------
Test and Documentation Plan: new tests
Status: Patch Available (was: Open)
> Accord: when Keys has token conflicts, this lead to issues with Routes and
> containsAll
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-20443
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20443
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Accord
> Reporter: David Capwell
> Assignee: David Capwell
> Priority: Normal
> Fix For: NA
>
>
> I expanded the token conflict test we have and made it work with "BEGIN
> TRANSACTION”, this found the following query that produced 2 issues
> {code}
> BEGIN TRANSACTION
> SELECT *
> FROM ks1.tbl
> WHERE pk0 IN (?,
> [2892067103478724734, 1812978630881194576],
> [2064799796759245177, -6203482704687188726],
> ?,
> [8851180251647311573, 7234223351840278408],
> [-8408733618693791037, 4975975287576968395],
> ?,
> [3796860366723332381, 4854522671450096398],
> [2801255514338491099, 1536309548203019388],
> [1671136236668177696, 7613673013648441416],
> [-1713814855607614235, -4429785928021925587],
> [-3625611392830933875, -4673787292954285362],
> ?,
> ?,
> ?,
> [7871765290254607967, -3554243229385660726],
> [5114239330927170140, 7372954989672274227],
> [3900396405465942559, -5915375426355393056],
> [-4158385457770721711, 4584133652251541072],
> ?,
> [-8027583943607759627, -8128670479030975477],
> [7299264908933082945, 7954619750441931354],
> ?,
> [-6447492554303878840, -3659922033689091659],
> [-6466800460415784493, 6719880509886959599],
> ?,
> ?,
> ?,
> [-296621452631518492, 5937507516664782136]);
> COMMIT TRANSACTION
> {code}
> {code}
> INFO [node2_AccordExecutor[1,13]] 2025-03-14 15:20:54,843
> SubstituteLogger.java:169 - ERROR 22:20:54 Uncaught accord exception
> java.lang.IllegalArgumentException: null
> at accord.utils.Invariants.illegalArgument(Invariants.java:97)
> at accord.utils.Invariants.illegalArgument(Invariants.java:107)
> at accord.utils.Invariants.requireArgument(Invariants.java:338)
> at
> accord.utils.BTreeReducingIntervalMap$AbstractBoundariesBuilder.append(BTreeReducingIntervalMap.java:503)
> at
> accord.utils.BTreeReducingRangeMap.create(BTreeReducingRangeMap.java:216)
> at
> accord.utils.BTreeReducingRangeMap.create(BTreeReducingRangeMap.java:180)
> at
> accord.utils.BTreeReducingRangeMap.update(BTreeReducingRangeMap.java:277)
> at accord.local.MaxConflicts.update(MaxConflicts.java:51)
> at accord.local.CommandStore.updateMaxConflicts(CommandStore.java:386)
> at
> accord.local.SafeCommandStore.updateMaxConflicts(SafeCommandStore.java:303)
> at accord.local.SafeCommandStore.update(SafeCommandStore.java:243)
> at accord.local.SafeCommand.update(SafeCommand.java:68)
> at accord.local.SafeCommand.preaccept(SafeCommand.java:99)
> at accord.local.Commands.preacceptOrRecover(Commands.java:205)
> at accord.local.Commands.preaccept(Commands.java:145)
> at accord.messages.PreAccept.apply(PreAccept.java:114)
> at accord.messages.PreAccept.apply(PreAccept.java:55)
> {code}
> And
> {code}
> INFO [node1_AccordExecutor[1,3]] 2025-03-14 15:40:41,853
> SubstituteLogger.java:169 - ERROR 22:40:41 Uncaught accord exception
> java.lang.IllegalStateException: null
> at accord.utils.Invariants.createIllegalState(Invariants.java:77)
> at accord.utils.Invariants.illegalState(Invariants.java:82)
> at accord.utils.Invariants.illegalState(Invariants.java:92)
> at accord.utils.Invariants.require(Invariants.java:218)
> at accord.local.Commands.preacceptOrRecover(Commands.java:185)
> at accord.local.Commands.preaccept(Commands.java:145)
> at accord.messages.PreAccept.apply(PreAccept.java:114)
> at accord.messages.PreAccept.apply(PreAccept.java:55)
> {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]