[ 
https://issues.apache.org/jira/browse/CASSANDRA-21186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060466#comment-18060466
 ] 

Dmitry Konstantinov commented on CASSANDRA-21186:
-------------------------------------------------

The first OOM-related error in the test log ( 
[^TEST-org.apache.cassandra.index.accord.RouteIndexTest.log.xz] ):
{code}
ERROR [MemtableFlushWriter:1] 2026-02-21T00:42:12,558 OutOfMemory error letting 
the JVM handle the error:
java.lang.OutOfMemoryError: Java heap space
        at 
org.apache.cassandra.utils.streamhist.StreamingTombstoneHistogramBuilder$Spool.<init>(StreamingTombstoneHistogramBuilder.java:433)
        at 
org.apache.cassandra.utils.streamhist.StreamingTombstoneHistogramBuilder.<init>(StreamingTombstoneHistogramBuilder.java:86)
        at 
org.apache.cassandra.io.sstable.metadata.MetadataCollector.<init>(MetadataCollector.java:122)
        at 
org.apache.cassandra.io.sstable.metadata.MetadataCollector.<init>(MetadataCollector.java:165)
        at 
org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.create(SimpleSSTableMultiWriter.java:128)
        at 
org.apache.cassandra.db.compaction.AbstractCompactionStrategy.createSSTableMultiWriter(AbstractCompactionStrategy.java:569)
        at 
org.apache.cassandra.db.compaction.CompactionStrategyHolder.createSSTableMultiWriter(CompactionStrategyHolder.java:249)
        at 
org.apache.cassandra.db.compaction.CompactionStrategyManager.createSSTableMultiWriter(CompactionStrategyManager.java:1425)
        at 
org.apache.cassandra.db.ColumnFamilyStore.createSSTableMultiWriter(ColumnFamilyStore.java:689)
        at 
org.apache.cassandra.db.ColumnFamilyStore.createSSTableMultiWriter(ColumnFamilyStore.java:684)
        at 
org.apache.cassandra.db.memtable.Flushing.createFlushWriter(Flushing.java:242)
        at 
org.apache.cassandra.db.memtable.Flushing.flushRunnable(Flushing.java:117)
        at 
org.apache.cassandra.db.memtable.Flushing.flushRunnables(Flushing.java:87)
        at 
org.apache.cassandra.db.ColumnFamilyStore$Flush.flushMemtable(ColumnFamilyStore.java:1334)
        at 
org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1289)
        at 
org.apache.cassandra.concurrent.ExecutionFailure$1.run(ExecutionFailure.java:138)
        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}

> Test failure: org.apache.cassandra.index.accord.RouteIndexTest
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-21186
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21186
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Test/dtest/java
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 5.x
>
>         Attachments: RouteIndexTest_thread_dump.txt, 
> TEST-org.apache.cassandra.index.accord.RouteIndexTest.log.xz
>
>
> The test is almost always fail now on the main CI, last example: 
> https://ci-cassandra.apache.org/job/Cassandra-trunk/2410/#showFailuresLink
> It happens for different JDKs and configurations (compression, cdc, oa)
> Usually it fails with a JUnit test timeout:
> {code}
> Timeout occurred. Please note the time in the report does not reflect the 
> time until the timeout.
> {code}
> Thanks to CASSANDRA-21172 we can see now a thread dump ( 
> [^RouteIndexTest_thread_dump.txt] ) to clarify where did we stuck.
> https://ci-cassandra.apache.org/job/Cassandra-trunk/2410/cloudbees-pipeline-explorer/?line=450882
> test-cdc jdk11 3/20
> we can observe Java OOM as well as the stuck main thread:
> {code}
> [junit-timeout] "main" #1 prio=5 os_prio=0 cpu=9993.84ms elapsed=480.27s 
> tid=0x00007fc3e401f000 nid=0xf44 waiting on condition  [0x00007fc3eabd0000]
> [junit-timeout]    java.lang.Thread.State: WAITING (parking)
> [junit-timeout]       at 
> jdk.internal.misc.Unsafe.park([email protected]/Native Method)
> [junit-timeout]       at 
> java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:323)
> [junit-timeout]       at 
> org.apache.cassandra.utils.concurrent.WaitQueue$Standard$AbstractSignal.await(WaitQueue.java:322)
> [junit-timeout]       at 
> org.apache.cassandra.utils.concurrent.WaitQueue$Standard$AbstractSignal.await(WaitQueue.java:300)
> [junit-timeout]       at 
> org.apache.cassandra.utils.concurrent.Awaitable$AsyncAwaitable.await(Awaitable.java:306)
> [junit-timeout]       at 
> org.apache.cassandra.utils.concurrent.Awaitable$AsyncAwaitable.await(Awaitable.java:338)
> [junit-timeout]       at 
> org.apache.cassandra.utils.concurrent.Awaitable$Defaults.awaitThrowUncheckedOnInterrupt(Awaitable.java:131)
> [junit-timeout]       at 
> org.apache.cassandra.utils.concurrent.Awaitable$AbstractAwaitable.awaitThrowUncheckedOnInterrupt(Awaitable.java:235)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.log.LocalLog$Async.runOnce(LocalLog.java:760)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.log.LocalLog$Async$AwaitCommit.get(LocalLog.java:868)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.log.LocalLog$Async$AwaitCommit.get(LocalLog.java:860)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.log.LocalLog$Async.awaitAtLeast(LocalLog.java:709)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.AbstractLocalProcessor.commit(AbstractLocalProcessor.java:106)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.ClusterMetadataService$SwitchableProcessor.commit(ClusterMetadataService.java:973)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.Processor.commit(Processor.java:50)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.ClusterMetadataService.commit(ClusterMetadataService.java:613)
> [junit-timeout]       at 
> org.apache.cassandra.tcm.ClusterMetadataService.commit(ClusterMetadataService.java:578)
> [junit-timeout]       at 
> org.apache.cassandra.ServerTestUtils$ResettableClusterMetadataService.reset(ServerTestUtils.java:385)
> [junit-timeout]       at 
> org.apache.cassandra.ServerTestUtils.resetCMS(ServerTestUtils.java:357)
> [junit-timeout]       at 
> org.apache.cassandra.cql3.CQLTester.afterTest(CQLTester.java:534)
> {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