You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by pv...@apache.org on 2026/04/29 11:53:56 UTC

(iceberg) branch 1.10.x updated: Flink: Bundle flink-metrics-dropwizard in runtime jar (#16130)

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

pvary pushed a commit to branch 1.10.x
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/1.10.x by this push:
     new 25369b46de Flink: Bundle flink-metrics-dropwizard in runtime jar (#16130)
25369b46de is described below

commit 25369b46de85c627ceced70fcdf57b28749ae94d
Author: Maximilian Michels <mx...@apache.org>
AuthorDate: Wed Apr 29 13:53:49 2026 +0200

    Flink: Bundle flink-metrics-dropwizard in runtime jar (#16130)
---
 docs/docs/flink-writes.md         |  4 ++++
 flink/v1.19/build.gradle          |  4 ++--
 flink/v1.19/flink-runtime/LICENSE | 11 +++++++++--
 flink/v1.20/build.gradle          |  4 ++--
 flink/v1.20/flink-runtime/LICENSE | 11 +++++++++--
 flink/v2.0/build.gradle           |  4 ++--
 flink/v2.0/flink-runtime/LICENSE  | 11 +++++++++--
 7 files changed, 37 insertions(+), 12 deletions(-)

diff --git a/docs/docs/flink-writes.md b/docs/docs/flink-writes.md
index 168cb2d418..3d8f3a149e 100644
--- a/docs/docs/flink-writes.md
+++ b/docs/docs/flink-writes.md
@@ -210,6 +210,10 @@ They should have the following key-value tags.
 | dataFilesSizeHistogram    | Histogram  | Histogram distribution of data file sizes (in bytes).                                               |
 | deleteFilesSizeHistogram  | Histogram  | Histogram distribution of delete file sizes (in bytes).                                             |
 
+The `Histogram` metrics above require `flink-metrics-dropwizard` on the classpath, which is not shipped
+by Flink by default. When using `iceberg-flink-runtime`, this dependency is already bundled. When using
+the `iceberg-flink` artifact directly, add `org.apache.flink:flink-metrics-dropwizard` as a dependency.
+
 Committer metrics are added under the sub group of `IcebergFilesCommitter`.
 They should have the following key-value tags.
 
diff --git a/flink/v1.19/build.gradle b/flink/v1.19/build.gradle
index f0fd048a6c..56ed9d12fd 100644
--- a/flink/v1.19/build.gradle
+++ b/flink/v1.19/build.gradle
@@ -33,7 +33,7 @@ project(":iceberg-flink:iceberg-flink-${flinkMajorVersion}") {
     implementation project(':iceberg-hive-metastore')
 
     compileOnly libs.flink119.avro
-    // for dropwizard histogram metrics implementation
+    // dropwizard histogram metrics (optional in Flink)
     compileOnly libs.flink119.metrics.dropwizard
     compileOnly libs.flink119.streaming.java
     compileOnly "${libs.flink119.streaming.java.get().module}:${libs.flink119.streaming.java.get().getVersion()}:tests"
@@ -168,7 +168,7 @@ project(":iceberg-flink:iceberg-flink-runtime-${flinkMajorVersion}") {
       exclude group: 'com.google.code.findbugs', module: 'jsr305'
     }
 
-    // for dropwizard histogram metrics implementation
+    // To support dropwizard histogram metrics (not shipped by Flink by default)
     implementation libs.flink119.metrics.dropwizard
 
     // for integration testing with the flink-runtime-jar
diff --git a/flink/v1.19/flink-runtime/LICENSE b/flink/v1.19/flink-runtime/LICENSE
index 9ca869edb5..d741283eda 100644
--- a/flink/v1.19/flink-runtime/LICENSE
+++ b/flink/v1.19/flink-runtime/LICENSE
@@ -461,11 +461,18 @@ License: https://www.apache.org/licenses/LICENSE-2.0.html
 
 --------------------------------------------------------------------------------
 
-This binary artifact contains Codehale Metrics.
+This product bundles Dropwizard Metrics.
 
 Copyright: (c) 2010-2013 Coda Hale, Yammer.com, 2014-2021 Dropwizard Team
 Home page: https://github.com/dropwizard/metrics
-License: https://www.apache.org/licenses/LICENSE-2.0.html
+License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
+
+--------------------------------------------------------------------------------
+
+This product bundles Apache Flink's optional support for Dropwizard Metrics.
+
+Copyright: 2014-2026 The Apache Software Foundation
+Project URL: https://flink.apache.org/
 
 --------------------------------------------------------------------------------
 
diff --git a/flink/v1.20/build.gradle b/flink/v1.20/build.gradle
index 7c4989312e..4fd8f08d49 100644
--- a/flink/v1.20/build.gradle
+++ b/flink/v1.20/build.gradle
@@ -33,7 +33,7 @@ project(":iceberg-flink:iceberg-flink-${flinkMajorVersion}") {
     implementation project(':iceberg-hive-metastore')
 
     compileOnly libs.flink120.avro
-    // for dropwizard histogram metrics implementation
+    // dropwizard histogram metrics (optional in Flink)
     compileOnly libs.flink120.metrics.dropwizard
     compileOnly libs.flink120.streaming.java
     compileOnly "${libs.flink120.streaming.java.get().module}:${libs.flink120.streaming.java.get().getVersion()}:tests"
@@ -168,7 +168,7 @@ project(":iceberg-flink:iceberg-flink-runtime-${flinkMajorVersion}") {
       exclude group: 'com.google.code.findbugs', module: 'jsr305'
     }
 
-    // for dropwizard histogram metrics implementation
+    // To support dropwizard histogram metrics (not shipped by Flink by default)
     implementation libs.flink120.metrics.dropwizard
 
     // for integration testing with the flink-runtime-jar
diff --git a/flink/v1.20/flink-runtime/LICENSE b/flink/v1.20/flink-runtime/LICENSE
index 9ca869edb5..d741283eda 100644
--- a/flink/v1.20/flink-runtime/LICENSE
+++ b/flink/v1.20/flink-runtime/LICENSE
@@ -461,11 +461,18 @@ License: https://www.apache.org/licenses/LICENSE-2.0.html
 
 --------------------------------------------------------------------------------
 
-This binary artifact contains Codehale Metrics.
+This product bundles Dropwizard Metrics.
 
 Copyright: (c) 2010-2013 Coda Hale, Yammer.com, 2014-2021 Dropwizard Team
 Home page: https://github.com/dropwizard/metrics
-License: https://www.apache.org/licenses/LICENSE-2.0.html
+License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
+
+--------------------------------------------------------------------------------
+
+This product bundles Apache Flink's optional support for Dropwizard Metrics.
+
+Copyright: 2014-2026 The Apache Software Foundation
+Project URL: https://flink.apache.org/
 
 --------------------------------------------------------------------------------
 
diff --git a/flink/v2.0/build.gradle b/flink/v2.0/build.gradle
index c0de408e98..39b927b30a 100644
--- a/flink/v2.0/build.gradle
+++ b/flink/v2.0/build.gradle
@@ -33,7 +33,7 @@ project(":iceberg-flink:iceberg-flink-${flinkMajorVersion}") {
     implementation project(':iceberg-hive-metastore')
 
     compileOnly libs.flink20.avro
-    // for dropwizard histogram metrics implementation
+    // dropwizard histogram metrics (optional in Flink)
     compileOnly libs.flink20.metrics.dropwizard
     compileOnly libs.flink20.streaming.java
     compileOnly "${libs.flink20.streaming.java.get().module}:${libs.flink20.streaming.java.get().getVersion()}:tests"
@@ -168,7 +168,7 @@ project(":iceberg-flink:iceberg-flink-runtime-${flinkMajorVersion}") {
       exclude group: 'com.google.code.findbugs', module: 'jsr305'
     }
 
-    // for dropwizard histogram metrics implementation
+    // To support dropwizard histogram metrics (not shipped by Flink by default)
     implementation libs.flink20.metrics.dropwizard
 
     // for integration testing with the flink-runtime-jar
diff --git a/flink/v2.0/flink-runtime/LICENSE b/flink/v2.0/flink-runtime/LICENSE
index 9ca869edb5..d741283eda 100644
--- a/flink/v2.0/flink-runtime/LICENSE
+++ b/flink/v2.0/flink-runtime/LICENSE
@@ -461,11 +461,18 @@ License: https://www.apache.org/licenses/LICENSE-2.0.html
 
 --------------------------------------------------------------------------------
 
-This binary artifact contains Codehale Metrics.
+This product bundles Dropwizard Metrics.
 
 Copyright: (c) 2010-2013 Coda Hale, Yammer.com, 2014-2021 Dropwizard Team
 Home page: https://github.com/dropwizard/metrics
-License: https://www.apache.org/licenses/LICENSE-2.0.html
+License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
+
+--------------------------------------------------------------------------------
+
+This product bundles Apache Flink's optional support for Dropwizard Metrics.
+
+Copyright: 2014-2026 The Apache Software Foundation
+Project URL: https://flink.apache.org/
 
 --------------------------------------------------------------------------------