lianghuan-xatu commented on code in PR #5542:
URL: https://github.com/apache/seatunnel/pull/5542#discussion_r1362425471


##########
seatunnel-engine/seatunnel-engine-client/src/main/java/org/apache/seatunnel/engine/client/job/JobExecutionEnvironment.java:
##########
@@ -64,6 +83,82 @@ protected MultipleTableJobConfigParser getJobConfigParser() {
                 jobFilePath, idGenerator, jobConfig, commonPluginJars, 
isStartWithSavePoint);
     }
 
+    @Override
+    protected LogicalDag getLogicalDag() {
+        ImmutablePair<List<Action>, Set<URL>> immutablePair = 
getJobConfigParser().parse();
+        actions.addAll(immutablePair.getLeft());
+        // Enable upload connector jar package to engine server, automatically 
upload connector Jar
+        // packages
+        // and dependent third-party Jar packages to the server before job 
execution.
+        // Enabling this configuration does not require the server to hold all 
connector Jar
+        // packages.
+        boolean enableUploadConnectorJarPackage =
+                
seaTunnelConfig.getEngineConfig().getConnectorJarStorageConfig().getEnable();
+        if (enableUploadConnectorJarPackage == true) {
+            Set<ConnectorJarIdentifier> commonJarIdentifiers =
+                    connectorPackageClient.uploadCommonPluginJars(
+                            
Long.parseLong(jobConfig.getJobContext().getJobId()), commonPluginJars);

Review Comment:
   If we send a  request from the client to the server to check for the 
existence of the connector Jar package, and if the Jar package does exist, we 
need a separate API request to increment the reference count for the connector 
Jar package in shared connector jar storage mode. Should we switch to this 
approach?



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

Reply via email to