Repository: ignite
Updated Branches:
  refs/heads/master bde1941b0 -> 88b299fab


IGNITE-8708 CacheManagerTest.close_cachesEmpty failed

Signed-off-by: Anton Vinogradov <a...@apache.org>


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

Branch: refs/heads/master
Commit: 88b299fab9a4f23281a59532d366699a2988f1dd
Parents: bde1941
Author: Alexander Menshikov <sharple...@gmail.com>
Authored: Tue Jun 19 12:28:31 2018 +0300
Committer: Anton Vinogradov <a...@apache.org>
Committed: Tue Jun 19 12:28:31 2018 +0300

----------------------------------------------------------------------
 .../core/src/main/java/org/apache/ignite/cache/CacheManager.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/88b299fa/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java 
b/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
index b572dd5..a5dd9b0 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
@@ -258,8 +258,7 @@ public class CacheManager implements 
javax.cache.CacheManager {
 
         try {
             if (kernalGateway.getState() != GridKernalState.STARTED)
-                return Collections.emptySet(); // javadoc of #getCacheNames() 
says that IllegalStateException should be
-                                               // thrown but 
CacheManagerTest.close_cachesEmpty() require empty collection.
+                throw new IllegalStateException();
 
             Collection<String> res = new ArrayList<>();
 

Reply via email to