You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "diqiu50 (via GitHub)" <gi...@apache.org> on 2025/08/29 08:30:25 UTC
[PR] [Test] Fix class conflict in XXX bundle jars [gravitino]
diqiu50 opened a new pull request, #8357:
URL: https://github.com/apache/gravitino/pull/8357
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
(Please outline the changes and how this PR fixes the issue.)
### Why are the changes needed?
(Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, describe the bug.)
Fix: #(issue)
### Does this PR introduce _any_ user-facing change?
(Please list the user-facing changes introduced by your change, including
1. Change in user-facing APIs.
2. Addition or removal of property keys.)
### How was this patch tested?
(Please test your changes, and provide instructions on how to test it:
1. If you add a feature or fix a bug, add a test to cover your changes.
2. If you fix a flaky test, repeat it for many times to prove it works.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8041][#8337][#8353] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #8357:
URL: https://github.com/apache/gravitino/pull/8357
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2313002622
##########
bundles/aws/build.gradle.kts:
##########
Review Comment:
The relocate rule depends on your changes and the actual dependencies that are included. Remove the relocate rules for dependencies that are not needed and not included.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2318973802
##########
bundles/aws/build.gradle.kts:
##########
@@ -63,14 +61,11 @@ tasks.withType(ShadowJar::class.java) {
exclude(dependency("org.slf4j:slf4j-api"))
}
- relocate("com.amazonaws", "org.apache.gravitino.aws.shaded.com.amazonaws")
Review Comment:
Any reason to remove this? The Iceberg S3 test will fail for amazon class conflict
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2317680376
##########
bundles/aws/build.gradle.kts:
##########
@@ -63,14 +61,12 @@ tasks.withType(ShadowJar::class.java) {
exclude(dependency("org.slf4j:slf4j-api"))
}
- relocate("com.amazonaws", "org.apache.gravitino.aws.shaded.com.amazonaws")
relocate("com.fasterxml.jackson", "org.apache.gravitino.aws.shaded.com.fasterxml.jackson")
relocate("com.google.common", "org.apache.gravitino.aws.shaded.com.google.common")
relocate("com.google.errorprone", "org.apache.gravitino.aws.shaded.com.google.errorprone")
relocate("com.google.thirdparty", "org.apache.gravitino.aws.shaded.com.google.thirdparty")
relocate("io.netty", "org.apache.gravitino.aws.shaded.io.netty")
relocate("org.apache.commons", "org.apache.gravitino.aws.shaded.org.apache.commons")
- relocate("org.apache.hadoop.fs.s3a", "org.apache.gravitino.aws.shaded.org.apache.hadoop.fs.s3a")
Review Comment:
This change also fixes issue #8041. Please add the issue number to the PR title and description.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2318973802
##########
bundles/aws/build.gradle.kts:
##########
@@ -63,14 +61,11 @@ tasks.withType(ShadowJar::class.java) {
exclude(dependency("org.slf4j:slf4j-api"))
}
- relocate("com.amazonaws", "org.apache.gravitino.aws.shaded.com.amazonaws")
Review Comment:
The Iceberg S3 test will fail for amazon class conflict
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2313010516
##########
bundles/aws/build.gradle.kts:
##########
Review Comment:
+1, others seems to be okay for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2312843358
##########
bundles/gcp/build.gradle.kts:
##########
@@ -29,10 +29,8 @@ dependencies {
compileOnly(libs.hadoop3.client.api)
compileOnly(libs.hadoop3.client.runtime)
compileOnly(libs.hadoop3.gcs)
+ implementation(project(":common"))
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370, #8041] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2320648786
##########
bundles/aws/build.gradle.kts:
##########
@@ -63,14 +61,11 @@ tasks.withType(ShadowJar::class.java) {
exclude(dependency("org.slf4j:slf4j-api"))
}
- relocate("com.amazonaws", "org.apache.gravitino.aws.shaded.com.amazonaws")
Review Comment:
If it is not removed, PySpark will report an error when accessing S3.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370, #8041] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2319170226
##########
bundles/aws/build.gradle.kts:
##########
@@ -63,14 +61,12 @@ tasks.withType(ShadowJar::class.java) {
exclude(dependency("org.slf4j:slf4j-api"))
}
- relocate("com.amazonaws", "org.apache.gravitino.aws.shaded.com.amazonaws")
relocate("com.fasterxml.jackson", "org.apache.gravitino.aws.shaded.com.fasterxml.jackson")
relocate("com.google.common", "org.apache.gravitino.aws.shaded.com.google.common")
relocate("com.google.errorprone", "org.apache.gravitino.aws.shaded.com.google.errorprone")
relocate("com.google.thirdparty", "org.apache.gravitino.aws.shaded.com.google.thirdparty")
relocate("io.netty", "org.apache.gravitino.aws.shaded.io.netty")
relocate("org.apache.commons", "org.apache.gravitino.aws.shaded.org.apache.commons")
- relocate("org.apache.hadoop.fs.s3a", "org.apache.gravitino.aws.shaded.org.apache.hadoop.fs.s3a")
Review Comment:
added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Test] Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2312750533
##########
bundles/gcp/build.gradle.kts:
##########
@@ -29,10 +29,8 @@ dependencies {
compileOnly(libs.hadoop3.client.api)
compileOnly(libs.hadoop3.client.runtime)
compileOnly(libs.hadoop3.gcs)
+ implementation(project(":common"))
Review Comment:
why using `implementation` instead of `compileOnly` here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8370] fix (server): Fix class conflicts in the AWS bundle JARs and other bundle JARs. [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on code in PR #8357:
URL: https://github.com/apache/gravitino/pull/8357#discussion_r2312989244
##########
bundles/aws/build.gradle.kts:
##########
Review Comment:
Since you changed the dependency rule, do you also need to update the relocation rule?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org