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

    https://github.com/apache/flink/pull/3391#discussion_r103951515
  
    --- Diff: 
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/WebMonitorConfig.java
 ---
    @@ -65,8 +68,14 @@ public String getWebFrontendAddress() {
                return 
config.getValue(ConfigConstants.DEFAULT_JOB_MANAGER_WEB_FRONTEND_ADDRESS);
        }
     
    -   public int getWebFrontendPort() {
    -           return config.getInteger(JOB_MANAGER_WEB_PORT_KEY, 
DEFAULT_JOB_MANAGER_WEB_FRONTEND_PORT);
    +   public Iterator<Integer> getWebFrontendPortRange() throws 
IllegalArgumentException {
    +           String serverPortRange = 
config.getString(JOB_MANAGER_WEB_PORT_KEY, 
DEFAULT_JOB_MANAGER_WEB_FRONTEND_PORT);
    +
    +           try {
    +                   return NetUtils.getPortRangeFromString(serverPortRange);
    +           } catch (Exception e) {
    +                   throw new IllegalArgumentException("Invalid port range 
definition: " + serverPortRange);
    --- End diff --
    
    And add the cause `e` for this exception.


---
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