Skip to content

Commit dc8b83b

Browse files
committed
Add per-namespace-per-shard scope in ResourceExhaustedScope (#649)
**What changed?** Add per-namespace, per-shard scope and per-execution scope in ResourceExhaustedScope. **Why?** We return RESOURCE_EXHAUSTED_SCOPE_NAMESPACE resource exhausted error from persistence client when per-namespace, per-shard limit of a namespace is exhausted. But this causes confusion in metrics. There is no way to distinguish this error from per-namespace persistence limit exceeded errors. Adding this new scope for these errors will make it clear. Similary RESOURCE_EXHAUSTED_SCOPE_EXECUTION can be used to return per-execution resource exhausted errors like the lock timeout in mutable state cache.
1 parent 981440d commit dc8b83b

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

enums/v1/failed_cause.go-helpers.pb.go

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enums/v1/failed_cause.pb.go

Lines changed: 19 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/api

0 commit comments

Comments
 (0)