콘텐츠로 이동

StoreError

이 콘텐츠는 아직 번역되지 않았습니다.

  • transient:网络错 / 5xx / 429 / 超时 → 引擎按重试预算退避重试,超预算记 store.commit_failed,热层继续兜底
  • permanent:403/400 / 对象损坏 / 校验失败 → 停止对该会话上传并告警;载入侧映射 /v2 store_corrupted
  • not_found:键 / 会话不存在(get / load;head 用 null)→ resume 404
  • precondition_failed:CAS 不匹配(412)→ 本写者放弃(多副本切换保护),不重试
  • Error

new StoreError(
kind,
message,
options?
): StoreError;

StoreErrorKind

string

StoreErrorOptions

StoreError

Error.constructor

readonly kind: StoreErrorKind;

readonly retryAfterMs: number | undefined;