Skip to content
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

[#6375] improvment(catalog-hadoop): Remove protobuf-java to avoid conflict with authorization module #6376

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

yuqi1129
Copy link
Contributor

What changes were proposed in this pull request?

Remove jar protobuf-java.jar from the distribution package to avoid conflicts

Why are the changes needed?

To make authorization works for GCS fileset.

Fix: #6375

Does this PR introduce any user-facing change?

N/A.

How was this patch tested?

N/A

@yuqi1129 yuqi1129 self-assigned this Jan 27, 2025
@@ -52,6 +52,8 @@ dependencies {
exclude("org.eclipse.jetty", "*")
exclude("io.netty")
exclude("org.fusesource.leveldbjni")
// Exclude protobuf-java to avoid conflict with;
exclude("com.google.protobuf", "protobuf-java")
Copy link
Contributor

Choose a reason for hiding this comment

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

is it still useful as you exclude the package in copy task

Copy link
Contributor

Choose a reason for hiding this comment

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

Is exclude the protobuf-java in copy task is more general solution? since other package may introduce protobuf-java too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm afraid excluding it in the gradle dependencies may be more general.

since other package may introduce protobuf-java too.

Some modules use copy task to exclude jars because using excluding in gradle does not work. I believe this is not a very elegant behaviour.

@yuqi1129 yuqi1129 requested a review from FANNG1 February 5, 2025 11:32
@@ -52,6 +52,8 @@ dependencies {
exclude("org.eclipse.jetty", "*")
exclude("io.netty")
exclude("org.fusesource.leveldbjni")
// Exclude protobuf-java to avoid conflict with;
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment is not complete?

@jerryshao
Copy link
Contributor

@yuqi1129 can you please update this PR?

@jerryshao jerryshao added the branch-0.8 Automatically cherry-pick commit to branch-0.8 label Feb 6, 2025
@jerryshao jerryshao merged commit 4534985 into apache:main Feb 6, 2025
28 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 6, 2025
…onflict with authorization module (#6376)

### What changes were proposed in this pull request?

Remove jar `protobuf-java.jar` from the distribution package to avoid
conflicts

### Why are the changes needed?

To make authorization works for GCS fileset.

Fix: #6375 

### Does this PR introduce _any_ user-facing change?

N/A.

### How was this patch tested?

N/A
Abyss-lord pushed a commit to Abyss-lord/gravitino that referenced this pull request Feb 6, 2025
…void conflict with authorization module (apache#6376)

### What changes were proposed in this pull request?

Remove jar `protobuf-java.jar` from the distribution package to avoid
conflicts

### Why are the changes needed?

To make authorization works for GCS fileset.

Fix: apache#6375 

### Does this PR introduce _any_ user-facing change?

N/A.

### How was this patch tested?

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-0.8 Automatically cherry-pick commit to branch-0.8
Projects
None yet
3 participants