[ 
https://issues.apache.org/jira/browse/FLINK-8553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16355217#comment-16355217
 ] 

ASF GitHub Bot commented on FLINK-8553:
---------------------------------------

Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5418#discussion_r166564479
  
    --- Diff: 
flink-metrics/flink-metrics-datadog/src/main/java/org/apache/flink/metrics/datadog/DatadogHttpClient.java
 ---
    @@ -94,4 +96,22 @@ public void close() {
                client.dispatcher().executorService().shutdown();
                client.connectionPool().evictAll();
        }
    +
    +   private static class EmptyCallback implements Callback {
    +           private static final EmptyCallback singleton = new 
EmptyCallback();
    +
    +           public static Callback getEmptyCallback() {
    +                   return singleton;
    +           }
    +
    +           @Override
    +           public void onFailure(Call call, IOException e) {
    +                   // Do nothing
    --- End diff --
    
    Let's log the exception at least as DEBUG.


> switch flink-metrics-datadog to async mode
> ------------------------------------------
>
>                 Key: FLINK-8553
>                 URL: https://issues.apache.org/jira/browse/FLINK-8553
>             Project: Flink
>          Issue Type: Improvement
>          Components: Metrics
>    Affects Versions: 1.4.0
>            Reporter: Bowen Li
>            Assignee: Bowen Li
>            Priority: Major
>             Fix For: 1.5.0
>
>
> Even though currently flink-metrics-datadog is designed as `fire-and-forget`, 
> it's still using sync calls which may block or slow down core. Need to switch 
> it to async mode.
> cc  [~Zentol]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to