高可用性 - 停止CacheHost导致DataCacheException:ErrorCode< ERRCA0022>:SubStatus< ES0001> [英] High Availability - Stopping CacheHost Causes DataCacheException: ErrorCode<ERRCA0022>:SubStatus<ES0001>

查看:72
本文介绍了高可用性 - 停止CacheHost导致DataCacheException:ErrorCode< ERRCA0022>:SubStatus< ES0001>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1  CacheClient在启用高可用性的情况下从缓存中请求16个不同的ID(-Secondaries 1);群集中的4个CacheHost


2. 在其中一个缓存主机上执行stop-cacheHost。


预期结果: 没有缓存未命中,没有例外


实际结果: 缓存客户端获得以下异常:



   在Microsoft.Data.Caching.DataCache.ThrowException(ResponseBody respBody)


   at Microsoft.Data.Caching.DataCache.InternalGet(String key,DataCacheItemVersion& version,String region)


   在Microsoft.Data.Caching.DataCache.Get(String key)


这是预期的,我应该添加逻辑以捕获异常并重试?

解决方案

是的,这是预期的。请查看以下博客。


http://blogs.msdn.com/velocity/archive/2009/06/17/troubleshooting-velocity-series.aspx


1.  CacheClient requests 16 different ids from cache with high availability enabled (-Secondaries 1); 4 CacheHosts in the cluster

2.  execute stop-cacheHost on one of the cachehosts.

expected result:  no cache misses, no exceptions

actual result:  cache client gets the following exception:

Microsoft.Data.Caching.DataCacheException: ErrorCode<ERRCA0022>:SubStatus<ES0001>:There is a temporary failure, please retry after some time.

   at Microsoft.Data.Caching.DataCache.ThrowException(ResponseBody respBody)

   at Microsoft.Data.Caching.DataCache.InternalGet(String key, DataCacheItemVersion& version, String region)

   at Microsoft.Data.Caching.DataCache.Get(String key)

is this expected, should i add logic to catch the exception and try again?

解决方案

Yes this is expected. Please take a look at the following blog.

http://blogs.msdn.com/velocity/archive/2009/06/17/troubleshooting-velocity-series.aspx


这篇关于高可用性 - 停止CacheHost导致DataCacheException:ErrorCode&lt; ERRCA0022&gt;:SubStatus&lt; ES0001&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆