github-actions[bot] commented on code in PR #70903:
URL: https://github.com/apache/doris/pull/70903#discussion_r4674898311
##########
fe/fe-core/src/main/java/org/apache/doris/connector/ConnectorPluginManager.java:
##########
@@ -192,12 +200,14 @@ void loadBuiltins(ClassLoader classLoader) {
continue;
}
ConnectorSecuritySurface securitySurface;
+ Set<String> formats;
try {
- // Snapshot self-reported metadata (the security surface
included) before publishing the
- // provider so one throwing implementation is rejected cleanly
instead of
+ // Snapshot self-reported metadata (the security surface and
the file formats included) before
+ // publishing the provider so one throwing implementation is
rejected cleanly instead of
// aborting startup or being active without an inventory row.
A surface built through the
// provider's own ServiceLoader fails with
ServiceConfigurationError, as construction can.
securitySurface = provider.securitySurface();
+ formats = provider.getFileFormats();
Review Comment:
[P1] Skip classpath providers whose file-format inventory fails to link.
`loadBuiltins()` now invokes `provider.getFileFormats()` here, but the
surrounding catch only handles `ServiceConfigurationError | RuntimeException`.
A classpath provider that references an optional format dependency can throw
`NoClassDefFoundError` (a `LinkageError`), which escapes the synchronous
`Env.initConnectorPluginManager()` startup path and aborts FE initialization.
The directory-loader path already catches `LinkageError`; catch it for
classpath metadata too and add a classpath provider failure test.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]