ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: Fixed ClassCastException in GridNioServer dumpStats.
Date Tue, 30 Jan 2018 18:56:09 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-zk 307852dcd -> a65d955d8


Fixed ClassCastException in GridNioServer dumpStats.


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

Branch: refs/heads/ignite-zk
Commit: a65d955d8d30d6492d32f0b560a4deb82f7d9dd8
Parents: 307852d
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Jan 30 21:55:38 2018 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Jan 30 21:55:38 2018 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/a65d955d/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 d8baa10..0d32c96 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
@@ -2149,7 +2149,12 @@ public class GridNioServer<T> {
                 dumpSelectorInfo(sb, keys);
 
             for (SelectionKey key : keys) {
-                GridSelectorNioSessionImpl ses = (GridSelectorNioSessionImpl)key.attachment();
+                GridNioKeyAttachment attach = (GridNioKeyAttachment)key.attachment();
+
+                if (!attach.hasSession())
+                    continue;
+
+                GridSelectorNioSessionImpl ses = attach.session();
 
                 boolean sesInfo = p == null || p.apply(ses);
 


Mime
View raw message