Hisoka-X commented on code in PR #7976:
URL: https://github.com/apache/seatunnel/pull/7976#discussion_r1830363106
##########
seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/classloader/DefaultClassLoaderService.java:
##########
@@ -59,6 +69,20 @@ public synchronized ClassLoader getClassLoader(long jobId,
Collection<URL> jars)
classLoaderReferenceCount.get(jobId).get(key).incrementAndGet();
return classLoaderMap.get(key);
} else {
+ if (Objects.nonNull(nodeEngine)) {
+ for (URL jar : jars) {
+ File file = new File(jar.toURI().getPath());
+ if (!file.exists()) {
+ String host =
+ ((NodeEngineImpl)
nodeEngine).getNode().getThisAddress().getHost();
+ throw new ClassLoaderException(
+ ClassLoaderErrorCode.NOT_FOUND_JAR,
+ "Node:" + host + ", file not found, path: " +
jar);
Review Comment:
The message can be:
```
The jar file file://tmp/fake.jar can not be found in node 10.0.0.1:5801,
please ensure that the deployment paths of SeaTunnel on different nodes are
consistent.
```
--
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]