Bug: Test failure: CommitLogSegmentManagerCDCTest.testSwitchingCDCWriteModes
Status: Open
Priority: Normal
Created: 09/Apr/22 14:17

JVM crashes in 4.1 builds #1060 and #1067.

h4. Cassandra-4.1 #1067

Stage job: Cassandra-trunk-test/1193/jdk=jdk_11_latest,label=cassandra,split=3/
nightlies: https://nightlies.apache.org/cassandra/trunk/Cassandra-trunk-test/1193/Cassandra-trunk-test/jdk=jdk_11_latest,label=cassandra,split=3/

Crash:
{noformat}

18:24:10 [junit-timeout] OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
18:24:11 [junit-timeout] Testsuite: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest
18:25:30 [junit-timeout] #
18:25:30 [junit-timeout] # A fatal error has been detected by the Java Runtime Environment:
18:25:30 [junit-timeout] #
18:25:30 [junit-timeout] #  SIGBUS (0x7) at pc=0x00007f86288b60e6, pid=2008, tid=2012
18:25:30 [junit-timeout] #
18:25:30 [junit-timeout] # JRE version: OpenJDK Runtime Environment (11.0.11+9) (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
18:25:30 [junit-timeout] # Java VM: OpenJDK 64-Bit Server VM (11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
18:25:30 [junit-timeout] # Problematic frame:
18:25:30 [junit-timeout] # v  ~StubRoutines::jshort_disjoint_arraycopy
18:25:30 [junit-timeout] #
18:25:30 [junit-timeout] # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/cassandra/cassandra/core.2008)
18:25:30 [junit-timeout] #
18:25:30 [junit-timeout] # An error report file with more information is saved as:
18:25:30 [junit-timeout] # /home/cassandra/cassandra/hs_err_pid2008.log
18:25:30 [junit-timeout] [thread 2064 also had an error]
18:25:30 [junit-timeout] Compiled method (c2)   80120 5828       4       org.apache.cassandra.io.util.BufferedDataOutputStreamPlus::write (119 bytes)
18:25:30 [junit-timeout]  total in heap  [0x00007f86305f9b90,0x00007f86305fb4a8] = 6424
18:25:30 [junit-timeout]  relocation     [0x00007f86305f9d08,0x00007f86305f9d80] = 120
18:25:30 [junit-timeout]  main code      [0x00007f86305f9d80,0x00007f86305faae0] = 3424
18:25:30 [junit-timeout]  stub code      [0x00007f86305faae0,0x00007f86305fab18] = 56
18:25:30 [junit-timeout]  oops           [0x00007f86305fab18,0x00007f86305fab28] = 16
18:25:30 [junit-timeout]  metadata       [0x00007f86305fab28,0x00007f86305fabf0] = 200
18:25:30 [junit-timeout]  scopes data    [0x00007f86305fabf0,0x00007f86305fb208] = 1560
18:25:30 [junit-timeout]  scopes pcs     [0x00007f86305fb208,0x00007f86305fb438] = 560
18:25:30 [junit-timeout]  dependencies   [0x00007f86305fb438,0x00007f86305fb448] = 16
18:25:30 [junit-timeout]  handler table  [0x00007f86305fb448,0x00007f86305fb478] = 48
18:25:30 [junit-timeout]  nul chk table  [0x00007f86305fb478,0x00007f86305fb4a8] = 48
18:25:30 [junit-timeout] Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled
18:25:30 [junit-timeout] #
18:25:30 [junit-timeout] # If you would like to submit a bug report, please visit:
18:25:30 [junit-timeout] #   https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
18:25:30 [junit-timeout] #
18:25:31 [junit-timeout] Testsuite: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest
18:25:31 [junit-timeout] Testsuite: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
18:25:31 [junit-timeout] 
18:25:31 [junit-timeout] Testcase: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest:testSwitchingCDCWriteModes:	Caused an ERROR
18:25:31 [junit-timeout] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
18:25:31 [junit-timeout] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at org.apache.cassandra.anttasks.TestHelper.execute(TestHelper.java:53)
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
18:25:31 [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:25:31 [junit-timeout] 
18:25:31 [junit-timeout] 
18:25:31 [junit-timeout] Test org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest FAILED (crashed)
{noformat}


h4. Cassandra-4.1 #1060

Stage job: Cassandra-trunk-test/1186/jdk=jdk_11_latest,label=cassandra,split=3
nightlies: https://nightlies.apache.org/cassandra/trunk/Cassandra-trunk-test/1186/Cassandra-trunk-test/jdk=jdk_11_latest,label=cassandra,split=3/

Crash:
{noformat}

17:56:15  [junit-timeout] Testcase: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest:testSwitchingCDCWriteModes:	Caused an ERROR
17:56:15  [junit-timeout] Timeout occurred. Please note the time in the report does not reflect the time until the timeout.
17:56:15  [junit-timeout] junit.framework.AssertionFailedError: Timeout occurred. Please note the time in the report does not reflect the time until the timeout.
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at org.apache.cassandra.anttasks.TestHelper.execute(TestHelper.java:53)
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at java.base/java.util.Vector.forEach(Vector.java:1388)
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:56:15  [junit-timeout] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:56:15  [junit-timeout] 
17:56:15  [junit-timeout] 
17:56:15  [junit-timeout] Test org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest FAILED (timeout)
{noformat}