Skip to content

Azure: Merge ContextAccessor service registrations in shaded bundle - #17841

Open
Denverper wants to merge 1 commit into
apache:mainfrom
Denverper:dp/fix-conflicting-service-registration
Open

Azure: Merge ContextAccessor service registrations in shaded bundle#17841
Denverper wants to merge 1 commit into
apache:mainfrom
Denverper:dp/fix-conflicting-service-registration

Conversation

@Denverper

@Denverper Denverper commented Aug 26, 2026

Copy link
Copy Markdown

The Azure bundle shades Reactor Core and Reactor Netty, which both contribute implementations for META-INF/services/io.micrometer.context.ContextAccessor

Because duplicate service descriptors are not merged by default, the resulting bundle preserves the Reactor Netty registration but drops reactor.util.context.ReactorContextAccessor. The implementation class (ReactorContextAccessor) remains in the jar, micrometer cannot discover it through ServiceLoader, meaning we get "No ContextAccessor for contextType" failures at runtime during any azure operations that use ReactorContext when micrometer context propagation is active.

The two entries for the same service descriptor that are overwriting eachother:

This PR should merge the ContextAccessor service descriptor to contain both of these implementation so service loader can find both on load and ReactorContext can successfully be read.

A backport to the Iceberg 1.10.x release channel is also requested because affected downstream releases are based on Iceberg 1.10.0.

@Denverper Denverper changed the title [Fix] Merge ContextAccessor service registrations in shaded bundle - Azure Azure: Merge ContextAccessor service registrations in shaded bundle Aug 26, 2026
Comment thread azure-bundle/build.gradle
shadowJar {
archiveClassifier.set(null)
zip64 true
mergeServiceFiles()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@Denverper
Denverper marked this pull request as ready for review August 26, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant