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
- is caused by
-
KAFKA-13328 Connect does not perform preflight validation for per-connector header converters
- Resolved
-
KAFKA-13329 Connect does not perform preflight validation for per-connector key and value converters
- Resolved
- links to