-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#6363] improvment(bundle-gcp): Shade some GCP IAM classes in gcp-bundles
to avoid possible conflict
#6364
Conversation
In your enviroment, there are some existing GCP IAM classes conflict with the GCP IAM classes in gcp-bundle? |
bundles/gcp-bundle/build.gradle.kts
Outdated
@@ -42,6 +42,12 @@ tasks.withType(ShadowJar::class.java) { | |||
relocate("com.google.common", "org.apache.gravitino.gcp.shaded.com.google.common") | |||
relocate("com.fasterxml", "org.apache.gravitino.gcp.shaded.com.fasterxml") | |||
relocate("org.eclipse.jetty", "org.apache.gravitino.gcp.shaded.org.eclipse.jetty") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not shade the package in gcp
module too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gravitino server will use gcp-bundle
for Hadoop catalog only. The conflict only exists in Gravitino server now, so do you mean you need to also consider module gcp
for future use case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OH, seems no requrirement.
bundles/gcp-bundle/build.gradle.kts
Outdated
@@ -42,6 +42,12 @@ tasks.withType(ShadowJar::class.java) { | |||
relocate("com.google.common", "org.apache.gravitino.gcp.shaded.com.google.common") | |||
relocate("com.fasterxml", "org.apache.gravitino.gcp.shaded.com.fasterxml") | |||
relocate("org.eclipse.jetty", "org.apache.gravitino.gcp.shaded.org.eclipse.jetty") | |||
relocate("com.google.protobuf", "org.apache.gravitino.gcp.shaded.com.google.protobuf") | |||
relocate("io.grpc", "org.apache.gravitino.gcp.shaded.io.grpc") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please keep in alphabetical order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Yes, the module |
lgtm |
What changes were proposed in this pull request?
Shade some GCP, gcp and probobuf classes to avoid conflicts with GCP IAM classes.
Why are the changes needed?
To avoid possible class conflicts.
Fix: #6363
Does this PR introduce any user-facing change?
N/A.
How was this patch tested?
existing UTs and ITs.