Caleb Rackliffe created CASSANDRA-21213:
-------------------------------------------
Summary: TrivialSimulationTest on trunk variously hangs or fails
Key: CASSANDRA-21213
URL: https://issues.apache.org/jira/browse/CASSANDRA-21213
Project: Apache Cassandra
Issue Type: Bug
Components: Test/simulator
Reporter: Caleb Rackliffe
It looks like [~dnk] has already filed CASSANDRA-20860, which describes the
error we hit earlier in the test around {{RunStartDefiner}}, but there are at
last two specific ways {{TrivialSimulationTest}} fails after that on {{trunk}}
w/ Java 11:
{noformat}
ant test-simulator-dtest -Dtest.name=TrivialSimulationTest
{noformat}
{noformat}
[junit-timeout] Failed on seed 0x19cde75bebb
...
[junit-timeout] WARN [main] node3 2026-03-11T20:03:54,100
YamlConfigurationLoader.java:563 - [use_deterministic_table_id] parameters have
been deprecated. They have new names and/or value format; For more information,
please refer to NEWS.txt
[junit-timeout] ERROR [node1_isolatedExecutor:1] node1 2026-03-11T20:03:58,405
JVMStabilityInspector.java:74 - Exception in thread
Thread[node1_isolatedExecutor:1,5,node1]
[junit-timeout]
org.apache.cassandra.utils.concurrent.UncheckedInterruptedException:
java.lang.InterruptedException
[junit-timeout] at
org.apache.cassandra.utils.Throwables.unchecked(Throwables.java:327)
[junit-timeout] at
org.apache.cassandra.utils.Throwables.throwAsUncheckedException(Throwables.java:338)
[junit-timeout] at
org.apache.cassandra.distributed.impl.IsolatedExecutor.waitOn(IsolatedExecutor.java:282)
[junit-timeout] at
org.apache.cassandra.distributed.impl.Instance.startup(Instance.java:687)
[junit-timeout] at
org.apache.cassandra.distributed.impl.AbstractCluster$Wrapper.startup(AbstractCluster.java:456)
[junit-timeout] at
org.apache.cassandra.distributed.impl.AbstractCluster$Wrapper.startup(AbstractCluster.java:429)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptedExecution$InterceptedRunnableExecution.run(InterceptedExecution.java:118)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptingExecutor$InterceptingPooledExecutor$WaitingThread.lambda$new$1(InterceptingExecutor.java:284)
[junit-timeout] at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[junit-timeout] at java.base/java.lang.Thread.run(Thread.java:829)
[junit-timeout] Caused by: java.lang.InterruptedException: null
[junit-timeout] at java.base/java.lang.Object.wait(Native Method)
[junit-timeout] at java.base/java.lang.Object.wait(Object.java:328)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptingMonitors$InterceptedMonitorWait.await(InterceptingMonitors.java:437)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptingMonitors.wait(InterceptingMonitors.java:600)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptingMonitors.wait(InterceptingMonitors.java:567)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptorOfSystemMethods$Global.wait(InterceptorOfSystemMethods.java:113)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.SyncFuture.await$unsync(SyncFuture.java:164)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.SyncFuture.await(SyncFuture.java)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.AbstractFuture.get(AbstractFuture.java:249)
[junit-timeout] at
org.apache.cassandra.distributed.impl.IsolatedExecutor.waitOn(IsolatedExecutor.java:277)
[junit-timeout] ... 7 common frames omitted
[junit-timeout] ERROR [node1_COMMIT-LOG-ALLOCATOR:1] node1
2026-03-11T20:03:58,414 InfiniteLoopExecutor.java:134 - Exception thrown by
runnable, continuing with loop
[junit-timeout] org.apache.cassandra.io.FSWriteError:
java.nio.channels.ClosedByInterruptException
[junit-timeout] at
org.apache.cassandra.db.commitlog.CompressedSegment.write(CompressedSegment.java:89)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment.sync$unsync(CommitLogSegment.java:346)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment.sync(CommitLogSegment.java)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment.close$unsync(CommitLogSegment.java:515)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment.close(CommitLogSegment.java)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment.discard(CommitLogSegment.java:434)
[junit-timeout] at
org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.discardAvailableSegment(AbstractCommitLogSegmentManager.java:584)
[junit-timeout] at
org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager$AllocatorRunnable.run(AbstractCommitLogSegmentManager.java:237)
[junit-timeout] at
org.apache.cassandra.concurrent.InfiniteLoopExecutor.loop(InfiniteLoopExecutor.java:119)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptedExecution$InterceptedThreadStart.run(InterceptedExecution.java:216)
[junit-timeout] at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[junit-timeout] at java.base/java.lang.Thread.run(Thread.java:829)
[junit-timeout] Caused by: java.nio.channels.ClosedByInterruptException: null
[junit-timeout] at
java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199)
[junit-timeout] at
com.google.common.jimfs.JimfsFileChannel.position(JimfsFileChannel.java:306)
[junit-timeout] at
org.apache.cassandra.io.filesystem.ForwardingFileChannel.position(ForwardingFileChannel.java:70)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CompressedSegment.write(CompressedSegment.java:81)
[junit-timeout] ... 11 common frames omitted
[junit-timeout] Using seed: 1773259438433
[junit-timeout] ERROR [node1_SecondaryIndexManagement:1] node1
2026-03-11T20:03:58,499 InterceptorOfGlobalMethods.java:444 - Exception in
thread Thread[node1_SecondaryIndexManagement:1,5,node1]
[junit-timeout]
org.apache.cassandra.utils.concurrent.UncheckedInterruptedException: null
[junit-timeout] at
org.apache.cassandra.utils.concurrent.Awaitable$Defaults.awaitThrowUncheckedOnInterrupt(Awaitable.java:135)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.Awaitable$AbstractAwaitable.awaitThrowUncheckedOnInterrupt(Awaitable.java:235)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment.waitForSync(CommitLogSegment.java:503)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.awaitDiskSync(CommitLogSegment.java:744)
[junit-timeout] at
org.apache.cassandra.db.commitlog.BatchCommitLogService.maybeWaitForSync(BatchCommitLogService.java:41)
[junit-timeout] at
org.apache.cassandra.db.commitlog.AbstractCommitLogService.finishWriteFor(AbstractCommitLogService.java:283)
[junit-timeout] at
org.apache.cassandra.db.commitlog.CommitLog.add(CommitLog.java:337)
[junit-timeout] at
org.apache.cassandra.db.CassandraKeyspaceWriteHandler.addToCommitLog(CassandraKeyspaceWriteHandler.java:99)
[junit-timeout] at
org.apache.cassandra.db.CassandraKeyspaceWriteHandler.beginWrite(CassandraKeyspaceWriteHandler.java:53)
[junit-timeout] at
org.apache.cassandra.db.Keyspace.applyInternal(Keyspace.java:549)
[junit-timeout] at
org.apache.cassandra.db.Keyspace.apply(Keyspace.java:434)
[junit-timeout] at
org.apache.cassandra.db.Mutation.apply(Mutation.java:297)
[junit-timeout] at
org.apache.cassandra.db.Mutation.apply(Mutation.java:317)
[junit-timeout] at
org.apache.cassandra.cql3.statements.ModificationStatement.casInternal(ModificationStatement.java:879)
[junit-timeout] at
org.apache.cassandra.cql3.statements.ModificationStatement.executeInternalWithCondition(ModificationStatement.java:854)
[junit-timeout] at
org.apache.cassandra.cql3.statements.ModificationStatement.executeLocally(ModificationStatement.java:836)
[junit-timeout] at
org.apache.cassandra.cql3.QueryProcessor.executeInternal(QueryProcessor.java:519)
[junit-timeout] at
org.apache.cassandra.db.SystemKeyspace.setIndexBuilt(SystemKeyspace.java:1327)
[junit-timeout] at
org.apache.cassandra.index.SecondaryIndexManager.markIndexBuilt$unsync(SecondaryIndexManager.java:857)
[junit-timeout] at
org.apache.cassandra.index.SecondaryIndexManager.markIndexBuilt(SecondaryIndexManager.java)
[junit-timeout] at
org.apache.cassandra.index.SecondaryIndexManager.lambda$buildIndex$1(SecondaryIndexManager.java:309)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList$CallbackLambdaListener.run(ListenerList.java:323)
[junit-timeout] at
org.apache.cassandra.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:140)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList.safeExecute(ListenerList.java:193)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList.notifyListener(ListenerList.java:184)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList$CallbackLambdaListener.notifySelf(ListenerList.java:330)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList.lambda$notifyExclusive$0(ListenerList.java:151)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.IntrusiveStack.forEach(IntrusiveStack.java:244)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.IntrusiveStack.forEach(IntrusiveStack.java:237)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.IntrusiveStack.forEach(IntrusiveStack.java:227)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList.notifyExclusive(ListenerList.java:151)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.ListenerList.notify(ListenerList.java:116)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.AsyncFuture.trySet(AsyncFuture.java:106)
[junit-timeout] at
org.apache.cassandra.utils.concurrent.AbstractFuture.trySuccess(AbstractFuture.java:147)
[junit-timeout] at
org.apache.cassandra.concurrent.FutureTask.run(FutureTask.java:71)
[junit-timeout] at
org.apache.cassandra.concurrent.FutureTask$2.call(FutureTask.java:124)
[junit-timeout] at
org.apache.cassandra.concurrent.SyncFutureTask.run(SyncFutureTask.java:68)
[junit-timeout] at
org.apache.cassandra.simulator.systems.InterceptingExecutor$AbstractSingleThreadedExecutorPlus.lambda$new$0(InterceptingExecutor.java:551)
[junit-timeout] at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[junit-timeout] at java.base/java.lang.Thread.run(Thread.java:829)
...
[junit-timeout] Caused by: java.lang.AssertionError: Errors detected during
simulation
[junit-timeout] Suppressed:
org.apache.cassandra.db.KeyspaceNotDefinedException: keyspace ks does not exist
[junit-timeout] at
org.apache.cassandra.schema.SchemaProvider.validateTable(SchemaProvider.java:102)
{noformat}
On another seed, we just hang...
{noformat}
[junit-timeout] Simulation seed: 1773258381705L
...
[junit-timeout] No serialVersionUID on Serializable class
org.apache.cassandra.utils.JsonUtils$GlobalInstantSerializer
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]