Shoothzj commented on a change in pull request #12937:
URL: https://github.com/apache/pulsar/pull/12937#discussion_r755172437
##########
File path:
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/SourcesImpl.java
##########
@@ -741,6 +742,7 @@ public SourceConfig getSourceInfo(final String tenant,
SourceConfigUtils.ExtractedSourceDetails sourceDetails
= SourceConfigUtils.validateAndExtractDetails(
sourceConfig, classLoader,
worker().getWorkerConfig().getValidateConnectorConfig());
+ ClassLoaderUtils.closeClassLoaderIfNeed(classLoader);
Review comment:
UrlClassLoader is instance of `Closable`. And we are using
NarClassLoader widely in pulsar-functions, which is the subClass of
UrlClassLoader
--
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]