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

[05/50] [abbrv] ignite git commit: IGNITE-10293 Collect caches info only on active cluster.

IGNITE-10293 Collect caches info only on active cluster.


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

Branch: refs/heads/ignite-9720
Commit: eed26bcfb26d58372459f84173c4d0969dc08c8a
Parents: a9c5aed
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Fri Nov 16 16:17:01 2018 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Fri Nov 16 16:17:01 2018 +0700

----------------------------------------------------------------------
 .../ignite/internal/visor/node/VisorNodeDataCollectorJob.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/eed26bcf/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
index 5fab8d1..9025ed0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
@@ -335,7 +335,8 @@ public class VisorNodeDataCollectorJob extends VisorJob<VisorNodeDataCollectorTa
         if (debug)
             start0 = log(ignite.log(), "Collected memory metrics", getClass(), start0);
 
-        caches(res, arg);
+        if (ignite.cluster().active())
+            caches(res, arg);
 
         if (debug)
             start0 = log(ignite.log(), "Collected caches", getClass(), start0);