分佈式緩存: Velocity之異常信息

Windows Server AppFabric 中的緩存錯誤消息包含一個錯誤代碼字符串和一個錯誤子狀態字符串。 本附錄提供錯誤消息和開發人員能夠用來處理這些錯誤的常量之間的鏈接。 緩存

如下錯誤消息是您可能在啓用緩存的應用程序的應用程序日誌中看到的內容示例: this

ErrorCode <ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Retry later.) spa

儘管該錯誤消息解釋了這個問題,但它並無告訴開發人員所生成的 DataCacheException 對象的確切類型。 在這種狀況下,DataCacheException 對象擁有一個 ErrorCode 屬性(其值爲 RetryLater)和一個 SubStatus 屬性(其值爲 CacheServerUnavailable)。 這容許開發人員使用異常處理來針對該錯誤採起更具體的操做,如重試調用。 還容許 IT 專業人士查找有關該錯誤的詳細信息。 對於本示例錯誤消息,在本文檔的下面部分有更詳細的幫助。 RetryLater (CacheServerUnavailable) (Windows Server AppFabric 緩存)日誌

技巧orm

有關 AppFabric 緩存錯誤處理的詳細信息,請參閱處理錯誤。 有關如何解決若干常見緩存錯誤的指南,請參閱本文檔中的應用程序異常(Windows Server AppFabric 緩存)server

下表將錯誤代碼字符串與 DataCacheErrorCode 類中的錯誤代碼常量鏈接在一塊兒。 對象

   

錯誤代碼字符串ci

DataCacheErrorCode 常量開發

ERRCA0001文檔

CacheItemVersionMismatch

ERRCA0002

RegistryKeyOpenFailure

ERRCA0003

InvalidArgument

ERRCA0004

UndefinedError

ERRCA0005

RegionDoesNotExist

ERRCA0006

KeyDoesNotExist

ERRCA0007

RegionAlreadyExists

ERRCA0008

KeyAlreadyExists

ERRCA0009

NamedCacheDoesNotExist

ERRCA0010

MaxNamedCacheCountExceeded

ERRCA0011

ObjectLocked

ERRCA0012

ObjectNotLocked

ERRCA0013

InvalidCacheLockHandle

ERRCA0014

InvalidEnumerator

ERRCA0015

NotificationInvalidationNotSupported

ERRCA0016

ConnectionTerminated

ERRCA0017

RetryLater

ERRCA0018

Timeout

ERRCA0019

ClientServerVersionMismatch

ERRCA0020

SerializationException

ERRCA0021

ServerNull

ERRCAdmin001

CacheAdminHostsRunning

ERRCAdmin002

CacheAdminRequestTimeoutResultUnknown

ERRCAdmin003

CacheAdminTimeout

ERRCAdmin004

CacheAdminNullArgs

ERRCAdmin005

CacheAdminUnknownError

ERRCAdmin006

CacheAdminQuorumNotUp

ERRCAdmin007

CacheAdminStoreAccessFailure

ERRCAdmin008

CacheAdminHostsNotRunning

ERRCAdmin009

CacheAdminCacheNotPresent

ERRCAdmin010

CacheAdminHostNotPresent

ERRCAdmin011

CacheAdminCacheAlreadyPresent

ERRCAdmin012

CacheAdminRegionNotPresent

ERRCAdmin013

CacheAdminNoQuorumIfHostStopped

ERRCAdmin014

CacheAdminNoSeedNodes

ERRCAdmin015

CacheAdminHostRunning

ERRCAdmin016

CacheAdminHostNotRunning

ERRCAdmin017

CacheAdminConfigDeleteHostError

ERRCAdmin018

CacheAdminConfigAddHostError

ERRCAdmin019

CacheAdminDefaultCacheCreateFailure

ERRCAdmin020

CacheAdminDeleteInProgress

ERRCAdmin021

CacheAdminCacheCreationInconsistencyFailure

ERRCAdmin022

CacheAdminHostNameResolveFailure

ERRCAdmin023

CacheAdminNoHosts

ERRCAdmin024

CacheAdminClusterRefreshFailed

ERRCAdmin025

CacheAdminClusterTimeout

ERRCAdmin026

CacheAdminRemoteRegistryAccessFailed

ERRCAdmin027

CacheAdminWindowsAccountInvalid

ERRCAdmin028

CacheAdminWindowsAccountAlreadyPresent

ERRCAdmin029

CacheAdminWindowsAccountNotPresent

ERRCAdmin030

CacheAdminGrantClientAccountErrorFormat

ERRCAdmin031

CacheAdminRevokeClientAccountErrorFormat

ERRCAdmin032

CacheAdminInvalidOperation

ERRCAdmin033

CacheAdminClusterNotReady

ERRCAdmin034

CacheAdminHostRefreshFailed

ERRPS001

CacheAdminClusterSettingsReadError

ERRPS002

CacheAdminInvalidClusterSettings

ERRPS003

CacheAdminMaxCachesCreated

ERRPS004

CacheAdminPortsDuplicated

ERRPS005

CacheAdminClusterDown

ERRPS006

CacheAdminStatsIncorrect

ERRPS007

CacheAdminInvalidSecuritySettings

ERRPS008

CacheAdminInstallPathReadError

ERRPS009

CacheAdminCacheNotCreated

ERRPS010

CacheAdminCacheNotRemoved

下表將錯誤子狀態字符串與 DataCacheErrorSubStatus 類中的錯誤子狀態常量鏈接在一塊兒。

   

錯誤子狀態字符串

DataCacheErrorSubStatus 常量

ES0001

ES0002

NotPrimary

ES0003

NoWriteQuorum

ES0004

ReplicationQueueFull

ES0005

KeyLatched

ES0006

CacheServerUnavailable

ES0007

Throttled

另請參閱

概念

Windows Server AppFabric 緩存部署和管理指南

相關文章
相關標籤/搜索