Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17476

Test failure: org.apache.cassandra.db.ImportTest.testImportCorrupt

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • 5.0-alpha1, 5.0, 5.0.x
    • Test/unit
    • None
    • Correctness - Test Failure
    • Normal
    • Normal
    • User Report
    • All
    • None
    • Hide

      Can't repro

      Show
      Can't repro

    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:

      https://ci-cassandra.apache.org/job/Cassandra-trunk/1029/testReport/org.apache.cassandra.db/ImportTest/testImportCorrupt_cdc_3/

      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

      Attachments

        Activity

          People

            bereng Berenguer Blasi
            adelapena Andres de la Peña
            Berenguer Blasi
            Andres de la Peña
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: