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/15 21:35:32 UTC

[ignite] branch ignite-12787 created (now 5220151)

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

ipavlukhin pushed a change to branch ignite-12787
in repository https://gitbox.apache.org/repos/asf/ignite.git.


      at 5220151  Update GridNioServer.java

This branch includes the following new commits:

     new 5220151  Update GridNioServer.java

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[ignite] 01/01: Update GridNioServer.java

Posted by ip...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5220151c53f96a582257681888f58ca16c69b722
Author: pavlukhin <vo...@gmail.com>
AuthorDate: Mon Mar 16 00:35:05 2020 +0300

    Update GridNioServer.java
---
 .../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;