GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix potential class conflict during jetcd-core-shaded shading process by Shawyeok · Pull Request #4532 · apache/bookkeeper

Conversation

@Shawyeok

@Shawyeok Shawyeok commented Nov 28, 2024

Copy link
Copy Markdown
Contributor

Motivation

This a make up patch for #4526, which missed the root cause to fix potential jetcd-core shading problem.

Because the maven-shade-plugin includes the current project artifact during the shade process. In jetcd-core-shaded, we copy io.etcd.jetcd.* into the jetcd-core-shaded jar without relocation. As a result, when the install or deploy goals are executed without cleaning the target folder, class conflicts arise between io.etcd.jetcd.* inside org.apache.bookkeeper.metadata.drivers:jetcd-core-shaded.jar and io.etcd:jetcd-core.jar.

Verifying this Change

To verify this patch, follow these steps:

# Step 1: Clean and install the `jetcd-core-shaded` module.
mvn clean install -pl metadata-drivers/jetcd-core-shaded -DskipTests

# Step 2: Install without cleaning, simulating a build release process.
mvn install -pl metadata-drivers/jetcd-core-shaded -DskipTests

# Step 3: Unpack the shaded jar into a directory and verify imports.
# Ensure that the import statement for `io.netty.handler.logging.ByteBufFormat` 
# in `org/apache/pulsar/jetcd/shaded/io/vertx/core/net/NetClientOptions.class` 
# is correct. The expected import is:
# `import io.grpc.netty.shaded.io.netty.handler.logging.ByteBufFormat;`.
unzip $M2_REPO/org/apache/bookkeeper/metadata/drivers/jetcd-core-shaded/<VERSION>/jetcd-core-shaded-<VERSION>.jar \
  -d metadata-drivers/jetcd-core-shaded/target/shaded-classes

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Shawyeok
Class conflict during jetcd-core-shaded shading process
14c6975
@Shawyeok Shawyeok mentioned this pull request Nov 28, 2024
[fix][misc] Class conflict during jetcd-core-shaded shading process apache/pulsar#23641
Merged
1 of 14 tasks
lhotari
lhotari approved these changes Nov 28, 2024
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

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.

LGTM, thank you @Shawyeok

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dlg99
dlg99 approved these changes Dec 6, 2024
View reviewed changes
@StevenLuMT

StevenLuMT commented Feb 14, 2025

Copy link
Copy Markdown
Member

ci fail for timeout,retry again
image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StevenLuMT

StevenLuMT commented Feb 14, 2025

Copy link
Copy Markdown
Member

rerun failure checks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StevenLuMT StevenLuMT closed this Feb 14, 2025
@StevenLuMT StevenLuMT reopened this Feb 14, 2025
@StevenLuMT

StevenLuMT commented Feb 14, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

reopen's reason: rerun failure checks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liangyepianzhou
liangyepianzhou approved these changes Feb 14, 2025
View reviewed changes
@dlg99
dlg99 merged commit 7855518 into apache:master Feb 14, 2025
@hangc0276 hangc0276 added this to the 4.18.0 milestone May 27, 2026
@hangc0276 hangc0276 assigned Shawyeok May 27, 2026
@hangc0276 hangc0276 added the dependencies Pull requests that update a dependency file label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lhotari lhotari lhotari approved these changes
@dlg99 dlg99 dlg99 approved these changes
+1 more reviewer
@liangyepianzhou liangyepianzhou liangyepianzhou approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Shawyeok Shawyeok

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Milestone

4.18.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@Shawyeok @StevenLuMT @lhotari @dlg99 @liangyepianzhou @hangc0276
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.