lucliu1108 opened a new pull request, #23516: URL: https://github.com/apache/kafka/pull/23516
## Summary - `AbstractConfig.instantiateConfigProviders`: close already-created providers before rethrowing on `ClassNotFoundException`; also close the in-flight provider on any `RuntimeException` from `configure()`, since it wasn't added to the map yet. - `AbstractConfig.resolveConfigVariables`: move the provider close call into a finally so it still runs if `ConfigTransformer.transform()` throws. - `Worker.initConfigTransformer` / `MirrorMakerConfig.transform`: same fix as above for the provider-instantiation loops in Connect. - `Plugins.newConverter` / `newInternalConverter` / `newHeaderConverter`: close the plugin if `configure()` throws; also 2 same leaks, on `Converter`/`HeaderConverter`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
