[
https://issues.apache.org/jira/browse/FLINK-6642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler updated FLINK-6642:
------------------------------------
Description:
The {{EnvironmentInformation#getOpenFileHandlesLimit}} is accessing the 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}
was:
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}
> 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 the 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)