ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] EdShangGG commented on a change in pull request #6330: IGNITE-11592 NPE in case of continuing tx and cache stop operation
Date Mon, 20 May 2019 13:11:23 GMT
EdShangGG commented on a change in pull request #6330: IGNITE-11592 NPE in case of continuing
tx and cache stop operation
URL: https://github.com/apache/ignite/pull/6330#discussion_r285560668
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxStateImpl.java
 ##########
 @@ -123,6 +125,9 @@
         for (int i = 0; i < activeCacheIds.size(); i++) {
             int cacheId = activeCacheIds.get(i);
 
+            if (cctx.cacheContext(cacheId) == null)
+                throw new IgniteException("Cache is stopped, id=" + cacheId);
 
 Review comment:
   There is  CacheStoppedException, But if we need RuntimeException then everything is OK.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message