You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ling Mao (Jira)" <ji...@apache.org> on 2025/07/05 11:08:00 UTC

[jira] [Created] (CASSANDRA-20747) Add AccordNodeForceRestartTest for CASSANDRA-20661

Ling Mao created CASSANDRA-20747:
------------------------------------

             Summary: Add AccordNodeForceRestartTest for CASSANDRA-20661
                 Key: CASSANDRA-20747
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20747
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: Test/unit
            Reporter: Ling Mao


1. Add unit tests for [CASSANDRA-20661|https://issues.apache.org/jira/browse/CASSANDRA-20661].

2. I also discovered a potential issue (possibly a bug):
When *_coordinatorNode_* = 1, the tests consistently pass.
{code:java}
long oneInitMoney = 10000;
long anotherInitMoney = 10000;
long sum = oneInitMoney + anotherInitMoney;
int coordinatorNode = getRandomIndex(nodeCnt);
String insertCQLForOne = "INSERT INTO ks.accounts(account_holder, account_balance) VALUES ('alice', " + oneInitMoney + ")";
cluster.coordinator(coordinatorNode).executeWithResult(insertCQLForOne, ConsistencyLevel.QUORUM);{code}
 

However, when _*coordinatorNode*_ = 2 or 3, the test fails with the following stack trace:

 
{code:java}

java.lang.IllegalArgumentException: Ranges [1b255f4d-ef25-40a6-0000-00000000000a:DecoratedKey(5699955792253506986, 616c696365)] could not be found
	at accord.utils.Invariants.illegalArgument(Invariants.java:102)	at accord.topology.TopologyManager.atLeast(TopologyManager.java:1076)	at accord.topology.TopologyManager.selectFastPath(TopologyManager.java:1009)	at accord.local.Node.computeBestDefaultTxnIdFlags(Node.java:793)	at accord.local.Node.nextTxnId(Node.java:782)	at accord.local.Node.nextTxnId(Node.java:769)	at accord.local.Node.nextTxnId(Node.java:764)	at org.apache.cassandra.service.accord.AccordService.coordinateAsync(AccordService.java:656)	at org.apache.cassandra.service.consensus.migration.ConsensusMigrationMutationHelper.mutateWithAccordAsync(ConsensusMigrationMutationHelper.java:277)	at org.apache.cassandra.service.StorageProxy.dispatchMutationsWithRetryOnDifferentSystem(StorageProxy.java:1263)	at org.apache.cassandra.service.StorageProxy.mutateWithTriggers(StorageProxy.java:1251)	at org.apache.cassandra.cql3.statements.ModificationStatement.executeWithoutCondition(ModificationStatement.java:651)	at org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:623)	at org.apache.cassandra.distributed.impl.CoordinatorHelper.unsafeExecuteInternal(CoordinatorHelper.java:67)	at org.apache.cassandra.distributed.impl.CoordinatorHelper.unsafeExecuteInternal(CoordinatorHelper.java:47)	at org.apache.cassandra.distributed.impl.Coordinator.unsafeExecuteInternal(Coordinator.java:126)	at org.apache.cassandra.distributed.impl.Coordinator.lambda$executeWithResult$0(Coordinator.java:63)	at org.apache.cassandra.concurrent.FutureTask.call(FutureTask.java:61)	at org.apache.cassandra.concurrent.FutureTask.run(FutureTask.java:71)	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)	at java.base/java.lang.Thread.run(Thread.java:829)

{code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org