[fix](shade) relocate fastutil to avoid conflict with Hive/Hadoop bundled version#61
Open
morningman wants to merge 1 commit into
Open
[fix](shade) relocate fastutil to avoid conflict with Hive/Hadoop bundled version#61morningman wants to merge 1 commit into
morningman wants to merge 1 commit into
Conversation
…dled version Hive/Hadoop transitively bundle an ancient, unrelocated fastutil (6.5.x). On Doris FE/BE classpaths it shadows the modern it.unimi.dsi:fastutil(-core), so the old Long2ObjectOpenHashMap wins and throws NoSuchMethodError on computeIfAbsent(long, Long2ObjectFunction). Relocate it.unimi.dsi.fastutil to shade.doris.hive.it.unimi.dsi.fastutil so the shaded hive-catalog jar can no longer leak it onto the Doris classpath. Also bump version 3.1.1-SNAPSHOT -> 3.1.2-SNAPSHOT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hive/Hadoop transitively bundle an ancient, unrelocated fastutil (6.5.x). On Doris FE/BE classpaths it shadows the modern
it.unimi.dsi:fastutil(-core), so the oldLong2ObjectOpenHashMapwins and throwsNoSuchMethodErroroncomputeIfAbsent(long, Long2ObjectFunction).This PR relocates
it.unimi.dsi.fastutil->shade.doris.hive.it.unimi.dsi.fastutilin thehive-catalog-shadeshade config so the shaded jar can no longer leak fastutil onto the Doris classpath.Also bumps the version
3.1.1-SNAPSHOT->3.1.2-SNAPSHOT.Test Plan
hive-catalog-shadejarit.unimi.dsi.fastutilclasses in the shaded jar are relocated undershade.doris.hive.NoSuchMethodErrorno longer occurs on a Doris FE/BE using a Hive catalog🤖 Generated with Claude Code