From f57d86824dc7731cd46aefed1cdc4228a4aedc6c Mon Sep 17 00:00:00 2001 From: Prathyush PV Date: Mon, 2 Nov 2026 10:10:57 -0700 Subject: [PATCH 1/3] Add RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT resource-exhausted cause --- temporal/api/enums/v1/failed_cause.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/temporal/api/enums/v1/failed_cause.proto b/temporal/api/enums/v1/failed_cause.proto index cb14de64d..3836caa3e 100644 --- a/temporal/api/enums/v1/failed_cause.proto +++ b/temporal/api/enums/v1/failed_cause.proto @@ -157,6 +157,8 @@ enum ResourceExhaustedCause { RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT = 11; // Caller exceeds Nexus requests per second limit. RESOURCE_EXHAUSTED_CAUSE_CALLER_RPS_LIMIT = 12; + // Namespace exceeds persistence rate limit on a single history shard. + RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT = 13; } enum ResourceExhaustedScope { From b63c90786f2612719af9fae1f528335dfbf6d4ee Mon Sep 17 00:00:00 2001 From: Prathyush PV Date: Mon, 2 Nov 2026 10:11:53 -0700 Subject: [PATCH 2/3] Reword shard persistence limit comment --- temporal/api/enums/v1/failed_cause.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temporal/api/enums/v1/failed_cause.proto b/temporal/api/enums/v1/failed_cause.proto index 3836caa3e..e2c7c248e 100644 --- a/temporal/api/enums/v1/failed_cause.proto +++ b/temporal/api/enums/v1/failed_cause.proto @@ -157,7 +157,7 @@ enum ResourceExhaustedCause { RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT = 11; // Caller exceeds Nexus requests per second limit. RESOURCE_EXHAUSTED_CAUSE_CALLER_RPS_LIMIT = 12; - // Namespace exceeds persistence rate limit on a single history shard. + // Namespace exceeds persistence rate limit on a single shard. RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT = 13; } From 0b408d32d6bd51a15df3dc7487ae73933a98f247 Mon Sep 17 00:00:00 2001 From: Prathyush PV Date: Mon, 2 Nov 2026 12:12:56 -0700 Subject: [PATCH 3/3] Drop namespace from shard persistence limit comment --- temporal/api/enums/v1/failed_cause.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temporal/api/enums/v1/failed_cause.proto b/temporal/api/enums/v1/failed_cause.proto index e2c7c248e..ba0d74273 100644 --- a/temporal/api/enums/v1/failed_cause.proto +++ b/temporal/api/enums/v1/failed_cause.proto @@ -157,7 +157,7 @@ enum ResourceExhaustedCause { RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT = 11; // Caller exceeds Nexus requests per second limit. RESOURCE_EXHAUSTED_CAUSE_CALLER_RPS_LIMIT = 12; - // Namespace exceeds persistence rate limit on a single shard. + // Persistence rate limit exceeded on a single shard. RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT = 13; }