Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12822 Remove Deprecated APIs of Kafka Streams in 4.0
  3. KAFKA-17312

Fix tests shouldForwardAllDbOptionsCalls and shouldOverwriteAllOptionsMethods in RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None

    Description

      CI: https://ci-builds.apache.org/job/Kafka/job/kafka/job/trunk/3189/cloudbees-pipeline-explorer/

       

      RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest#shouldForwardAllDbOptionsCalls

      org.opentest4j.AssertionFailedError: Should have called DBOptions.maxBackgroundCompactions() ==> expected: <true> but was: <false>
      	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
      	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
      	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
      	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
      	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
      	at org.apache.kafka.streams.state.internals.RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest.verifyDBOptionsMethodCall(RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest.java:148)
      	at org.apache.kafka.streams.state.internals.RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest.shouldForwardAllDbOptionsCalls(RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest.java:131)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.util.ArrayList.forEach(ArrayList.java:1259)
      	at java.util.ArrayList.forEach(ArrayList.java:1259) 

      RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest#shouldOverwriteAllOptionsMethods

      java.lang.NoSuchMethodException: org.apache.kafka.streams.state.internals.RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter.maxBackgroundCompactions()
      	at java.lang.Class.getDeclaredMethod(Class.java:2130)
      	at org.apache.kafka.streams.state.internals.RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest.shouldOverwriteAllOptionsMethods(RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapterTest.java:120)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.util.ArrayList.forEach(ArrayList.java:1259)
      	at java.util.ArrayList.forEach(ArrayList.java:1259) 

      Attachments

        Issue Links

          Activity

            People

              yangpoan PoAn Yang
              yangpoan PoAn Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: