Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/2193#discussion_r69397170
--- 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 --
what does the forkNumber bring us here? wouldn't it be better to use it for
the mapPort to increase the range of ports?
---
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.
---