ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ag...@apache.org
Subject ignite git commit: IGNITE-8781 GridNioServer accepter threads should have different names
Date Thu, 14 Jun 2018 16:41:18 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 7965d12c1 -> 2d746b5d3


IGNITE-8781 GridNioServer accepter threads should have different names


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/2d746b5d
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/2d746b5d
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/2d746b5d

Branch: refs/heads/master
Commit: 2d746b5d39844ec91d1f73c916e23d257a902ef9
Parents: 7965d12
Author: Andrey Gura <agura@apache.org>
Authored: Wed Jun 13 17:30:18 2018 +0300
Committer: Andrey Gura <agura@apache.org>
Committed: Thu Jun 14 19:37:14 2018 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/util/nio/GridNioServer.java   | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2d746b5d/modules/core/src/main/java/org/apache/ignite/internal/util/nio/GridNioServer.java
----------------------------------------------------------------------
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 da3438e..03870db 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
@@ -338,7 +338,16 @@ public class GridNioServer<T> {
             // This method will throw exception if address already in use.
             Selector acceptSelector = createSelector(locAddr);
 
-            acceptThread = new IgniteThread(new GridNioAcceptWorker(igniteInstanceName, "nio-acceptor",
log, acceptSelector));
+            String threadName;
+
+            if (srvName == null)
+                threadName = "nio-acceptor";
+            else
+                threadName = "nio-acceptor-" + srvName;
+
+            GridNioAcceptWorker w = new GridNioAcceptWorker(igniteInstanceName, threadName,
log, acceptSelector);
+
+            acceptThread = new IgniteThread(w);
         }
         else {
             locAddr = null;


Mime
View raw message