This is an automated email from the ASF dual-hosted git repository.
wuchunfu pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 53a9227 [Improve] [core] Must throw exception while creating plugin
instances (#1419)
53a9227 is described below
commit 53a9227c23774a5d1bcc63564e784d95cfcb87e2
Author: Benedict Jin <[email protected]>
AuthorDate: Sat Mar 26 00:20:14 2022 +0800
[Improve] [core] Must throw exception while creating plugin instances
(#1419)
---
.../src/main/java/org/apache/seatunnel/config/ConfigBuilder.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/seatunnel-core/seatunnel-core-base/src/main/java/org/apache/seatunnel/config/ConfigBuilder.java
b/seatunnel-core/seatunnel-core-base/src/main/java/org/apache/seatunnel/config/ConfigBuilder.java
index cad5440..fb9b7f7 100644
---
a/seatunnel-core/seatunnel-core-base/src/main/java/org/apache/seatunnel/config/ConfigBuilder.java
+++
b/seatunnel-core/seatunnel-core-base/src/main/java/org/apache/seatunnel/config/ConfigBuilder.java
@@ -163,6 +163,7 @@ public class ConfigBuilder<ENVIRONMENT extends RuntimeEnv> {
// Iterator.next() may throw ServiceConfigurationError,
// but maybe caused by a not used plugin in this job
LOGGER.warn("Error when load plugin: [{}]", canonicalName, e);
+ throw e;
}
}
throw new ClassNotFoundException("Plugin class not found by name :[" +
canonicalName + "]");