jerrypeng opened a new pull request #9500: URL: https://github.com/apache/pulsar/pull/9500
### Motivation As a follow up to https://github.com/apache/pulsar/pull/9413. Allow the ThreadRuntime to leverage the already loaded and cached built-in connector registry so that it does not need to unpack NARs and calculate MD5 checksums as well. ### Modifications - Moved the jar loading logic from JavaInstanceRunnable to ThreadRuntime. - Add logic in ThreadRuntime to extract a classloader from a function package, e.g. JAR, or if it is a built-in connector just get it from the ConnectorManager. - Refactored JavaInstanceRunnable to take in classloader for the user function instead of jar paths. - Change the RuntimeFactory interface to allow ConnectorsManager to be passed in so that the ThreadRuntimeFactory can use it. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
