You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2018/11/02 10:23:22 UTC

[GitHub] zentol commented on a change in pull request #6996: [FLINK-10715] Change reporter log level

zentol commented on a change in pull request #6996: [FLINK-10715] Change reporter log level
URL: https://github.com/apache/flink/pull/6996#discussion_r230327489
 
 

 ##########
 File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java
 ##########
 @@ -426,7 +426,12 @@ public void run() {
 			try {
 				reporter.report();
 			} catch (Throwable t) {
-				LOG.warn("Error while reporting metrics", t);
+				if (LOG.isDebugEnabled()) {
+					LOG.debug("Error while reporting metrics {}", t);
+				}
+				else {
+					LOG.warn("Error while reporting metrics", t.getMessage());
 
 Review comment:
   We already log it as a warning and not as an error due to that reasoning.
   
   I think we're a bit naive when it comes to reporting errors in the metric system. Our argument is "it's _just_ tooling", but any Flink deployment that is important for the business-logic will be monitored, and issues in the metric system should be highlighted in some way accordingly.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services