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

Fix flaky test: org.apache.cassandra.tools.BulkLoaderTest.testBulkLoader_WithArgs1-_jdk17

    XMLWordPrintableJSON

Details

    • Correctness - Test Failure
    • Normal
    • Normal
    • User Report
    • All
    • None
    • Hide

      The issue seems analogous to CASSANDRA-19000, a different test in the same class.
      However, we never managed to reproduce it in CircleCI for any of the tests in the test class in thousands of runs, so that is new.
      Suggested patch here.
      Repeated test run without and with the patch (2000 times each) does not reproduce the issue.

      Show
      The issue seems analogous to CASSANDRA-19000 , a different test in the same class. However, we never managed to reproduce it in CircleCI for any of the tests in the test class in thousands of runs, so that is new. Suggested patch here . Repeated test run without and with the patch (2000 times each) does not reproduce the issue.

    Description

      Seen here: https://app.circleci.com/pipelines/github/driftx/cassandra/1418/workflows/5d108993-69f8-4bb8-a616-93a1d904ff1a/jobs/67177/tests

      junit.framework.AssertionFailedError: Wrong thread status, active threads unaccounted for: [cluster2-nio-worker-2]
      at org.apache.cassandra.tools.OfflineToolUtils.assertNoUnexpectedThreadsStarted(OfflineToolUtils.java:120)
      at org.apache.cassandra.tools.BulkLoaderTest.testBulkLoader_WithArgs1(BulkLoaderTest.java:97)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      Looks like either a thread is hanging around too long or we need to except it.

      Attachments

        Issue Links

          Activity

            People

              e.dimitrova Ekaterina Dimitrova
              brandon.williams Brandon Williams
              Ekaterina Dimitrova
              Berenguer Blasi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: