高可用性 - 停止CacheHost导致DataCacheException:ErrorCode< ERRCA0022>:SubStatus< ES0001> [英] High Availability - Stopping CacheHost Causes DataCacheException: ErrorCode<ERRCA0022>:SubStatus<ES0001>
问题描述
1&NBSP; 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< ERRCA0022>:SubStatus< ES0001>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!