Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Cannot Reproduce
-
None
-
Correctness - Test Failure
-
Normal
-
Normal
-
User Report
-
All
-
None
-
Description
There are intermittent failures in org.apache.cassandra.db.ImportTest#testImportCorrupt in trunk. This has only be hit once in Jenkins, for testImportCorrupt-cdc:
Error Message Data dir should contain one file expected:<1> but was:<2> Stacktrace junit.framework.AssertionFailedError: Data dir should contain one file expected:<1> but was:<2> at org.apache.cassandra.db.ImportTest.testCorruptHelper(ImportTest.java:349) at org.apache.cassandra.db.ImportTest.testImportCorrupt(ImportTest.java:378) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Standard Output INFO [main] 2022-03-21 12:53:37,982 YamlConfigurationLoader.java:103 - Configuration location: file:////home/cassandra/cassandra/build/test/cassandra.cdc.yaml DEBUG [main] 2022-03-21 12:53:37,987 YamlConfigurationLoader.java:124 - Loading settings from file:////home/cassandra/cassandra/build/test/cassandra.cdc.yaml INFO [main] 2022-03-21 12:53:38,203 Config.java:1119 - Node configuration:[allocate_tokens_for_keyspace=null; allocate_tokens_for_local_replication_factor=null; allow_extra_insecure ...[truncated 2109130 chars]... G [main] 2022-03-21 12:54:10,127 DefaultSchemaUpdateHandler.java:237 - Schema updated: SchemaTransformationResult{1a9fb97a-05c5-3af1-846c-72e67e40e056 --> 2326e45e-6c53-3f40-99c2-af12b234dfcf, diff=KeyspacesDiff{created=[], dropped=[KeyspaceMetadata{name=cql_test_keyspace_alt, kind=REGULAR, params=KeyspaceParams{durable_writes=true, replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, replication_factor=1}}, tables=[], views=[], functions=[], types=[]}], altered=[]}}
However, it's possible to hit the failure on both testImportCorrupt and testImportCorruptWithoutValidationWithCopying with the test multiplexer, although with a very low flakiness:
https://app.circleci.com/pipelines/github/adelapena/cassandra/1412/workflows/f2ca69cd-f1e3-450f-b444-a6f9fe6d1fd4/jobs/14186/tests