【发布时间】:2018-04-11 22:01:27
【问题描述】:
时不时地,我会看到以下我不理解的异常。 当不是集群的所有节点都在线时,就会发生这种情况。我不知道可以启动或停止缓存(Windows、C#、Ignite 版本 2.4)。当我收到该错误并启用持久性时,集群处于活动状态。
JavaException: class org.apache.ignite.IgniteCheckedException: Failed to perform cache operation (cache is stopped): MyCacheName
at org.apache.ignite.internal.processors.platform.utils.PlatformUtils.unwrapQueryException(PlatformUtils.java:519)
at org.apache.ignite.internal.processors.platform.cache.PlatformCache.runFieldsQuery(PlatformCache.java:1240)
at org.apache.ignite.internal.processors.platform.cache.PlatformCache.processInStreamOutObject(PlatformCache.java:877)
at org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inStreamOutObject(PlatformTargetProxyImpl.java:79)
Caused by: java.lang.IllegalStateException: class org.apache.ignite.internal.processors.cache.CacheStoppedException: Failed to perform cache operation (cache is stopped): MyCacheName
at org.apache.ignite.internal.processors.cache.GridCacheGateway.enter(GridCacheGateway.java:164)
at org.apache.ignite.internal.processors.cache.GatewayProtectedCacheProxy.onEnter(GatewayProtectedCacheProxy.java:1684)
at org.apache.ignite.internal.processors.cache.GatewayProtectedCacheProxy.query(GatewayProtectedCacheProxy.java:365)
at org.apache.ignite.internal.processors.platform.cache.PlatformCache.runFieldsQuery(PlatformCache.java:1234)
... 2 more
Caused by: class org.apache.ignite.internal.processors.cache.CacheStoppedException: Failed to perform cache operation (cache is stopped): MyCacheName
... 6 more
【问题讨论】:
-
您是否从客户端节点运行查询?在日志中应该是“缓存停止”消息,检查缓存停止之前发生了什么。请附加该节点的日志 sn-p。
-
它不是客户端节点。不幸的是,我无法故意重现该错误。