Commit b3ef50d
authored
Exclude jsr305 from SQL bundle to fix jar hell with arrow-flight-rpc (#5409)
The arrow-flight-rpc plugin (a transitive parent of analytics-engine via
extendedPlugins) bundles jsr305-3.0.2.jar, and the SQL plugin pulls in the
same artifact via Calcite's transitive findbugs:jsr305 dependency. With both
plugins shipping the same jar, OpenSearch's PluginsService.checkBundleJarHell
fails at install time with:
IllegalStateException: jar hell!
class: javax.annotation.CheckForNull
jar1: .../installing-.../jsr305-3.0.2.jar
jar2: .../plugins/arrow-flight-rpc/jsr305-3.0.2.jar
Same pattern as #5400 — exclude the jar from the SQL bundle and rely on the
copy already provided by arrow-flight-rpc through the shared classloader.
Signed-off-by: Kai Huang <ahkcs@amazon.com>1 parent a1d7b39 commit b3ef50d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
0 commit comments