Skip to content

HDDS-7305. Fix Hadoop imports#3822

Merged
captainzmc merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-7305
Oct 19, 2022
Merged

HDDS-7305. Fix Hadoop imports#3822
captainzmc merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-7305

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

  • Replace one import from Hadoop's shaded Guava.
  • Add direct dependencies for various Apache Commons libs instead of relying on getting them transitively via Hadoop.

Different Hadoop versions may not depend on all these libraries (or shade different Guava version), so using transitive dependency explicitly (via import) risks breaking with some version of Hadoop.

https://issues.apache.org/jira/browse/HDDS-7305

How was this patch tested?

Regular CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/3228775529

@adoroszlai adoroszlai self-assigned this Oct 11, 2022
@adoroszlai adoroszlai added the build Pull request that modifies the build process label Oct 11, 2022
@kerneltime
Copy link
Contributor

How did you identify the pom file changes? I understand the import change, but not sure how the pom file updates were speced out.

@adoroszlai
Copy link
Contributor Author

How did you identify the pom file changes?

Trial and error. Added the exclude, then resolved build failures.

Copy link
Member

@captainzmc captainzmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@adoroszlai adoroszlai requested a review from sodonnel October 19, 2022 11:28
@captainzmc captainzmc merged commit d5dc65e into apache:master Oct 19, 2022
@adoroszlai adoroszlai deleted the HDDS-7305 branch October 19, 2022 11:28
@adoroszlai
Copy link
Contributor Author

Thanks @captainzmc for reviewing and merging this.

@captainzmc
Copy link
Member

Thanks @adoroszlai, I will cherry-pick this to release branch.

captainzmc pushed a commit that referenced this pull request Oct 20, 2022
smengcl pushed a commit to smengcl/hadoop-ozone that referenced this pull request Nov 2, 2022
smengcl pushed a commit to smengcl/hadoop-ozone that referenced this pull request Nov 3, 2022
smengcl pushed a commit to smengcl/hadoop-ozone that referenced this pull request Nov 9, 2022
(cherry picked from commit d5dc65e)
(cherry picked from commit 66a2ea8f681685ea41483bc94a26c0bc92711ff5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull request that modifies the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments