Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5701

Unit test shouldTogglePrepareForBulkLoadDuringRestoreCalls fails

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0.1
    • 1.0.0
    • streams
    • None

    Description

      shouldTogglePrepareForBulkLoadDuringRestoreCalls occassionally fails. This can be reproduced locally in IntelliJ when running in a loop. It fails two ways:

      Way 1:
      ----------
      Exception in thread "Thread-6" java.lang.AssertionError: Condition not met within timeout 1000. Did not prepare for bulk load
      at org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:275)
      at org.apache.kafka.streams.state.internals.RocksDBStoreTest.assertRocksDBTurnsOnBulkLoading(RocksDBStoreTest.java:228)
      at org.apache.kafka.streams.state.internals.RocksDBStoreTest.access$000(RocksDBStoreTest.java:51)
      at org.apache.kafka.streams.state.internals.RocksDBStoreTest$1.run(RocksDBStoreTest.java:138)
      at java.lang.Thread.run(Thread.java:745)

      Way 2:
      ------------
      org.apache.kafka.streams.state.internals.RocksDBStoreTest.shouldTogglePrepareForBulkLoadDuringRestoreCalls
      java.lang.AssertionError
      at org.junit.Assert.fail(Assert.java:86)
      at org.junit.Assert.assertTrue(Assert.java:41)
      at org.junit.Assert.assertTrue(Assert.java:52)
      at org.apache.kafka.streams.state.internals.RocksDBStoreTest.shouldTogglePrepareForBulkLoadDuringRestoreCalls(RocksDBStoreTest.java:152)

      Attachments

        Issue Links

          Activity

            guozhang Guozhang Wang added a comment -

            Issue resolved by pull request 3640
            https://github.com/apache/kafka/pull/3640

            guozhang Guozhang Wang added a comment - Issue resolved by pull request 3640 https://github.com/apache/kafka/pull/3640
            githubbot ASF GitHub Bot added a comment -

            Github user asfgit closed the pull request at:

            https://github.com/apache/kafka/pull/3640

            githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/kafka/pull/3640

            People

              bbejeck Bill Bejeck
              enothereska Eno Thereska
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: