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

    https://github.com/apache/flink/pull/2193#discussion_r69421710
  
    --- Diff: 
flink-core/src/test/java/org/apache/flink/metrics/reporter/JMXReporterTest.java 
---
    @@ -285,4 +289,23 @@ public long getMin() {
                        };
                }
        }
    +
    +   /**
    +    * Sets the JMX port range config key based on the fork number.
    +    * @param config Configuration instance to configure
    +    * @return Passed configuration instance
    +    */
    +   private static Configuration setJmxPortRange(Configuration config) {
    +           int forkNumber = 0;
    +           try {
    +                   forkNumber = 
Integer.parseInt(System.getProperty("forkNumber"));
    +           } catch (NumberFormatException ignored) {
    +           }
    +
    +           int minPort = 9000 + forkNumber * 100;
    --- End diff --
    
    I think the fort number thing was non sensical as it is only set for 
integration tests.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to