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:33 UTC
[ignite] 01/01: Update GridNioServer.java
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;