ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntikho...@apache.org
Subject ignite git commit: Fixed "IGNITE-6184 Add checkClusterState() call to destroyCachesAsync() and getOrCreateCaches()". This closes #2526.
Date Wed, 27 Sep 2017 10:46:55 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 2929acef5 -> adbf0680f


Fixed "IGNITE-6184 Add checkClusterState() call to destroyCachesAsync() and getOrCreateCaches()".
This closes #2526.

Signed-off-by: nikolay_tikhonov <ntikhonov@gridgain.com>


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

Branch: refs/heads/master
Commit: adbf0680f8378448ae2f520ed8237bd6baaf7334
Parents: 2929ace
Author: Ilya Kasnacheev <ilya.kasnacheev@gmail.com>
Authored: Wed Sep 27 13:46:37 2017 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Wed Sep 27 13:46:37 2017 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/internal/IgniteKernal.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/adbf0680/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
index 67f76e1..f5d736a 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
@@ -2921,6 +2921,8 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable
{
         guard();
 
         try {
+            checkClusterState();
+
             ctx.cache().dynamicStartCaches(cacheCfgs,
                 false,
                 true).get();
@@ -3166,6 +3168,8 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable
{
         guard();
 
         try {
+            checkClusterState();
+
             return ctx.cache().dynamicDestroyCaches(cacheNames, checkThreadTx, false);
         }
         finally {


Mime
View raw message