Commit 5c560d4
authored
[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.1 parent 795a4d0 commit 5c560d4
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
0 commit comments