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

danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f20fd42e2b9 fix(flink): relocate org.apache.flink.dropwizard (#18982)
1f20fd42e2b9 is described below

commit 1f20fd42e2b94641e3b3838e42d8e4544ae36551
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
---
 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 b0bac2265055..dc505dee45bf 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