This is an automated email from the ASF dual-hosted git repository.

voonhous pushed a commit to branch release-1.2.1
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit 9b112cd3078f388876c03b48c3bfb57144a696d8
Author: ericyuan915 <[email protected]>
AuthorDate: Thu Jun 11 23:44:02 2026 -0700

    fix(flink): relocate org.apache.flink.dropwizard (#18982)
    
    * Update pom.xml to resolve the bug
    
    (cherry picked from commit 1f20fd42e2b94641e3b3838e42d8e4544ae36551)
---
 packaging/hudi-flink-bundle/pom.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/packaging/hudi-flink-bundle/pom.xml 
b/packaging/hudi-flink-bundle/pom.xml
index 25c3dff166c1..0c995e939c23 100644
--- a/packaging/hudi-flink-bundle/pom.xml
+++ b/packaging/hudi-flink-bundle/pom.xml
@@ -196,6 +196,15 @@
                   <pattern>com.codahale.metrics.</pattern>
                   
<shadedPattern>org.apache.hudi.com.codahale.metrics.</shadedPattern>
                 </relocation>
+                <!-- Relocate the bundled flink-metrics-dropwizard bridge into 
the hudi namespace.
+                       It is recompiled against the relocated 
com.codahale.metrics above, so leaving it
+                       at the real Flink FQN shadows the genuine wrapper and 
breaks any consumer that
+                       also depends on flink-metrics-dropwizard with a 
NoSuchMethodError on
+                       
DropwizardHistogramWrapper(com.codahale.metrics.Histogram). -->
+                <relocation>
+                  <pattern>org.apache.flink.dropwizard.</pattern>
+                  
<shadedPattern>${flink.bundle.shade.prefix}org.apache.flink.dropwizard.</shadedPattern>
+                </relocation>
                 <relocation>
                   <pattern>com.beust.jcommander.</pattern>
                   
<shadedPattern>${flink.bundle.shade.prefix}com.beust.jcommander.</shadedPattern>

Reply via email to