IgniteCheckedException:无法执行缓存操作(缓存已停止)

时间:2018-04-11 22:01:28

标签: .net apache ignite

我时不时地看到以下异常,我不明白。 当并非群集的所有节点都在线时,就会发生这种情况。我不知道可以启动或停止缓存(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

1 个答案:

答案 0 :(得分:0)

您可能遇到与此处相同的问题:

Ignite Cache Reconnection Issue (Cache is stopped)

如果您的问题与此问题类似:

https://issues.apache.org/jira/browse/IGNITE-5789

然后作为解决方法,您可以尝试重新启动客户端节点。