Commit ad55a1c
authored
fix(shard-distributor): prevent context cancellation in streaming WatchNamespaceState RPC (#7474)
**What changed?**
Added `sharddistributorClient.WatchNamespaceState` to the
`noTimeoutAPIs` list in the timeout wrapper template and regenerated the
wrapper code.
**Why?**
The timeout wrapper was immediately cancelling the context for streaming
RPCs, causing `WatchNamespaceState` streams to fail with "context
canceled" errors. For streaming RPCs, the context must remain alive for
the stream's entire lifetime, not just the initial call.
**How did you test it?**
Verified locally that WatchNamespaceState streams now remain open
without premature cancellation.
**Potential risks**
Low risk. This only affects the WatchNamespaceState streaming RPC,
allowing it to stay open as intended rather than being cancelled
immediately.
**Release notes**
**Documentation Changes**
None
Signed-off-by: Jakob Haahr Taankvist <[email protected]>1 parent 199e5fb commit ad55a1c
File tree
2 files changed
+1
-3
lines changed- client
- templates
- wrappers/timeout
2 files changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments