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

Use TestPlugins in ConnectorValidationIntegrationTest to silence plugin scanning errors

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • connect

    Description

      The ConnectorValidationIntegrationTest creates test plugins, some with erroneous behavior. In particular:

       

      [2023-12-29 10:28:06,548] ERROR Failed to discover Converter in classpath: Unable to instantiate TestConverterWithPrivateConstructor: Plugin class default constructor must be public (org.apache.kafka.connect.runtime.isolation.ReflectionScanner:138) [2023-12-29 10:28:06,550]
      ERROR Failed to discover Converter in classpath: Unable to instantiate TestConverterWithConstructorThatThrowsException: Failed to invoke plugin constructor (org.apache.kafka.connect.runtime.isolation.ReflectionScanner:138)
      java.lang.reflect.InvocationTargetException

      These plugins should be eliminated from the classpath, so that the errors do not appear in unrelated tests. Instead, plugins with erroneous behavior should only be present in the TestPlugins, so that tests can opt-in to loading them.

      There are already plugins with private constructors and throwing-exceptions-constructors, so they should be able to be re-used.

       

      Attachments

        Issue Links

          Activity

            People

              ChrisEgerton Chris Egerton
              gharris1727 Greg Harris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: