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

Unit test shouldTogglePrepareForBulkLoadDuringRestoreCalls fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0.1
    • Fix Version/s: 1.0.0
    • Component/s: streams
    • Labels:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: