You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2022/11/29 06:12:30 UTC

[flink] branch release-1.16 updated: [FLINK-30183][metrics] Adds more descriptive error in case no default constructor is present.

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

mapohl pushed a commit to branch release-1.16
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.16 by this push:
     new e70336893d8 [FLINK-30183][metrics] Adds more descriptive error in case no default constructor is present.
e70336893d8 is described below

commit e70336893d808c9e9759fbde1a772e39ec2f8b6c
Author: Matthias Pohl <ma...@aiven.io>
AuthorDate: Thu Nov 24 17:31:56 2022 +0800

    [FLINK-30183][metrics] Adds more descriptive error in case no default constructor is present.
    
    Signed-off-by: Matthias Pohl <ma...@aiven.io>
---
 .../src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java b/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java
index c67f520dbb5..1e546d687f0 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java
@@ -379,6 +379,7 @@ public final class ReporterSetup {
         if (reporterClassName != null) {
             LOG.warn(
                     "The reporter configuration of '{}' configures the reporter class, which is a deprecated approach to configure reporters."
+                            + " The used reporter might not support this configuration, which would cause errors while loading the reporter."
                             + " Please configure a factory class instead: '{}{}.{}: <factoryClass>' to ensure that the configuration"
                             + " continues to work with future versions.",
                     reporterName,