lhotari opened a new pull request #9638:
URL: https://github.com/apache/pulsar/pull/9638


   Fixes #9572
   
   ### Motivation
   
   See #9572 for problem description. The total size of Pulsar IO files is 
currently 1952MB. The changes in #9246 made the problem worse, but the root 
cause of the problem is not #9246 . The Pulsar IO Connectors contained 
unnecessary files already before that change. This PR doesn't intend to fix the 
problems of leaked dependencies that is an issue caused by #9246 . 
   
   It is safe to exclude all dependencies that are part of Pulsar Functions 
Worker's system classloader. The reason for this is that classloaders use 
parent-first lookups (by default, and also in Pulsar Functions Worker). The 
simplest way to do this exclusion is to use the `provided` scope when 
applicable.
   
   Reducing the Pulsar IO files size is necessary to get the size of the 
pulsar-test-latest-version docker image size reduced so that it is feasible to 
transfer the docker image over the network in order to build the image once in 
the Pulsar CI GitHub Actions workflow and reuse the image in the integration 
tests that use that image.
   
   ### Modifications
   
   - Use provided scope when applicable to exclude the dependencies which are 
part of Pulsar Functions Worker's system classloader.


----------------------------------------------------------------
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]


Reply via email to