This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5c560d4f083 [fix](fe) Preload paimon jindo for paimon scanner (#62350)
5c560d4f083 is described below
commit 5c560d4f083e2366e2596c7a84f6f8c6bd07f659
Author: Calvin Kirs <[email protected]>
AuthorDate: Sat Apr 11 09:47:50 2026 +0800
[fix](fe) Preload paimon jindo for paimon scanner (#62350)
`paimon-scanner` runs under a dedicated scanner classloader, while
`preload-extensions` is loaded from the parent classpath with higher
priority. Doris currently uses parent-first classloading for
scanner jars.
When `paimon-jindo` is packaged only inside `paimon-scanner`, runtime
may still resolve `org.apache.paimon.*` classes from the parent
classpath first. In this case, the Paimon `FileIO`/
`ServiceLoader` view seen at runtime is split across different
classloaders, and the Jindo file IO loader is not discovered correctly.
This can lead to errors like:
`org.apache.paimon.fs.UnsupportedSchemeException: Could not find a file
io implementation for scheme 'oss'`
This PR removes `paimon-jindo` from `paimon-scanner` and moves it to
`preload-extensions`, so the Jindo FileIO implementation is available
from the highest-priority parent classpath and stays
consistent with the Paimon core classes used during scanner execution.
This keeps the runtime dependency layout aligned with Doris' existing
classloading model and avoids scanner-local plugin jars being hidden by
parent-first resolution.
---
fe/be-java-extensions/paimon-scanner/pom.xml | 4 ----
fe/be-java-extensions/preload-extensions/pom.xml | 5 +++++
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/fe/be-java-extensions/paimon-scanner/pom.xml
b/fe/be-java-extensions/paimon-scanner/pom.xml
index 32d1e55cda0..60ff39c2681 100644
--- a/fe/be-java-extensions/paimon-scanner/pom.xml
+++ b/fe/be-java-extensions/paimon-scanner/pom.xml
@@ -60,10 +60,6 @@ under the License.
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-format</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.paimon</groupId>
- <artifactId>paimon-jindo</artifactId>
- </dependency>
</dependencies>
diff --git a/fe/be-java-extensions/preload-extensions/pom.xml
b/fe/be-java-extensions/preload-extensions/pom.xml
index 4528f76c7ec..6722d7b0e25 100644
--- a/fe/be-java-extensions/preload-extensions/pom.xml
+++ b/fe/be-java-extensions/preload-extensions/pom.xml
@@ -83,6 +83,11 @@ under the License.
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-s3</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>org.apache.paimon</groupId>
+ <artifactId>paimon-jindo</artifactId>
+ </dependency>
<!-- For Avro and Hudi Scanner PreLoad -->
<dependency>
<groupId>org.apache.hadoop</groupId>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]