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

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

Github user zentol commented on the issue:

    https://github.com/apache/flink/pull/4586
  
    This is rather odd. This minimal example does fail as expected:
    ```
    
        
        public static void main(String[] args) throws IOException {
                HTTPServer s1 = null;
                HTTPServer s2 = null;
                try {
                        s1 = new HTTPServer(9010);
                        s2 = new HTTPServer(9010);
                } finally {
                        if (s1 != null) {
                                s1.stop();
                        }
                        if (s2 != null) {
                                s2.stop();
                        }
                }
        }
    ```


> PrometheusReporter improvements
> -------------------------------
>
>                 Key: FLINK-7502
>                 URL: https://issues.apache.org/jira/browse/FLINK-7502
>             Project: Flink
>          Issue Type: Improvement
>          Components: Metrics
>    Affects Versions: 1.4.0
>            Reporter: Maximilian Bode
>            Assignee: Maximilian Bode
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> * do not throw exceptions on metrics being registered for second time
> * allow port ranges for setups where multiple reporters are on same host 
> (e.g. one TaskManager and one JobManager)
> * do not use nanohttpd anymore, there is now a minimal http server included 
> in [Prometheus JVM client|https://github.com/prometheus/client_java]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to