Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A41D9200C80 for ; Thu, 25 May 2017 20:49:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A2CCA160BDC; Thu, 25 May 2017 18:49:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F25F9160BD5 for ; Thu, 25 May 2017 20:49:43 +0200 (CEST) Received: (qmail 1142 invoked by uid 500); 25 May 2017 18:49:43 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 1032 invoked by uid 99); 25 May 2017 18:49:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2017 18:49:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7C412E080D; Thu, 25 May 2017 18:49:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chesnay@apache.org To: commits@flink.apache.org Date: Thu, 25 May 2017 18:49:44 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/5] flink git commit: [FLINK-6642] Return -1 in EnvInfo#getOpenFileHandlesLimit archived-at: Thu, 25 May 2017 18:49:44 -0000 [FLINK-6642] Return -1 in EnvInfo#getOpenFileHandlesLimit This closes #3956. Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/d4fba3b6 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/d4fba3b6 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/d4fba3b6 Branch: refs/heads/master Commit: d4fba3b674fc67db198e4cf163de6ca44b5caf8e Parents: 0bca76e Author: zentol Authored: Fri May 19 17:22:26 2017 +0200 Committer: zentol Committed: Thu May 25 15:56:43 2017 +0200 ---------------------------------------------------------------------- .../org/apache/flink/runtime/util/EnvironmentInformation.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/d4fba3b6/flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java ---------------------------------------------------------------------- diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java b/flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java index 39fa80e..7d44f74 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java @@ -25,6 +25,7 @@ import java.lang.reflect.Method; import java.util.List; import java.util.Properties; +import org.apache.flink.util.OperatingSystem; import org.apache.hadoop.util.VersionInfo; import org.slf4j.Logger; @@ -232,6 +233,9 @@ public class EnvironmentInformation { * @return The limit of open file handles, or {@code -1}, if the limit could not be determined. */ public static long getOpenFileHandlesLimit() { + if (OperatingSystem.isWindows()) { // getMaxFileDescriptorCount method is not available on Windows + return -1L; + } Class sunBeanClass; try { sunBeanClass = Class.forName("com.sun.management.UnixOperatingSystemMXBean");