You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ip...@apache.org on 2020/03/18 21:20:44 UTC

[ignite] branch master updated: IGNITE-12787 Remove obsolete Selector.open workaround code from GridNioServer (#7535)

This is an automated email from the ASF dual-hosted git repository.

ipavlukhin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 3daa183  IGNITE-12787 Remove obsolete Selector.open workaround code from GridNioServer (#7535)
3daa183 is described below

commit 3daa18341d94643e5c3ed2ae3814e86e6ad936cb
Author: pavlukhin <vo...@gmail.com>
AuthorDate: Thu Mar 19 00:20:22 2020 +0300

    IGNITE-12787 Remove obsolete Selector.open workaround code from GridNioServer (#7535)
---
 .../org/apache/ignite/internal/util/nio/GridNioServer.java | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/nio/GridNioServer.java b/modules/core/src/main/java/org/apache/ignite/internal/util/nio/GridNioServer.java
index 5ee8a73..6686f5e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/nio/GridNioServer.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/nio/GridNioServer.java
@@ -149,20 +149,6 @@ public class GridNioServer<T> {
     /** */
     public static final String SENT_BYTES_METRIC_DESC = "Total number of bytes sent by current node";
 
-    /**
-     *
-     */
-    static {
-        // This is a workaround for JDK bug (NPE in Selector.open()).
-        // http://bugs.sun.com/view_bug.do?bug_id=6427854
-        try {
-            Selector.open().close();
-        }
-        catch (IOException ignored) {
-            // No-op.
-        }
-    }
-
     /** Defines how many times selector should do {@code selectNow()} before doing {@code select(long)}. */
     private long selectorSpins;