Chesnay Schepler created FLINK-6642: ---------------------------------------
Summary: EnvInformation#getOpenFileHandlesLimit should return -1 for Windows Key: FLINK-6642 URL: https://issues.apache.org/jira/browse/FLINK-6642 Project: Flink Issue Type: Bug Components: Local Runtime Affects Versions: 1.4.0 Reporter: Chesnay Schepler Assignee: Chesnay Schepler The {{EnvironmentInformation#getOpenFileHandlesLimit}} is accessing t he sun {{UnixOperatingSystemMXBean}} via reflection, but has no branch for Windows. This causes the following exception to be logged whenever a TM is started: {code} 2017-05-19 16:49:58,780 WARN org.apache.flink.runtime.util.EnvironmentInformation - Unexpected error when accessing file handle limit java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.flink.runtime.util.EnvironmentInformation.getOpenFileHandlesLimit(EnvironmentInformation.java:245) at org.apache.flink.runtime.taskmanager.TaskManager$.main(TaskManager.scala:1528) at org.apache.flink.runtime.taskmanager.TaskManager.main(TaskManager.scala) 2017-05-19 16:49:58,780 INFO org.apache.flink.runtime.taskmanager.TaskManager - Cannot determine the maximum number of open file descriptors {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)