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

Fix flakiness of DecayingEstimatedHistogramReservoirTest#testStriping and apply the same "fix" to other tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-beta1, 4.0
    • Test/unit
    • None

    Description

      The unit test DecayingEstimatedHistogramReservoirTest#testStriping is flaky, especially when many tests are running concurrently, because the used thread-pool can still be running when the assertions are tested (i.e. the ExecutorService.awaitTermination() returned false).

      The "fix" is rather a band aid: extend the wait-period to 1 minute, check the return value of awaitTermination and apply the same change to some other tests that might be affected as well.

      Attachments

        Activity

          People

            snazy Robert Stupp
            snazy Robert Stupp
            Robert Stupp
            Eduard Tudenhoefner, Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: