Review 2026-12-02 Phase 6: Client fixes across all five clients #257
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 6 — Clients (p2)
Each item is applied to every affected client in one change, so the five clients stay in step. Run each client's verification from the CLAUDE.md table.
Cancelledis not caller cancellation,NotFound/FailedPreconditionon a session becomes the session-lost error, stream errors go through typed mapping, unknown enum values fall back to a number, and the status code is preserved.close()→shutdownNow()+ await, an interrupt cancels the RPC, the stream ctx is cancelled on EOF, channel close order is fixed, and the owned handler and cert are disposed.tonic::StatusDisplay/Debug, redact--valueonly as a whole token, and attach the API key per call so a caller interceptor can't drop it.bench-read-bulkbacks off on failure.ResourceExhausted.dialConnectedreturns the real cause. Pythonsmokeattaches the stream before advising.Verify: dotnet
slnxbuild + tests; Gogofmt/go test ./...; Rustfmt/clippy -D warnings/test; Pythonpytest(keep the generated code on the grpcio 1.80 pin); JavaJAVA_HOME=/opt/homebrew/opt/openjdk@17 gradle test, then revert the generated-proto churn. Finish with the cross-language e2e matrix against windev.Source:
code-reviews/2026-12-02-perf-bugs/README.mdandcode-reviews/2026-12-02-perf-bugs/PLAN.md(commitf200bda6on local branchdocs/review-2026-12-02-perf-bugs, not yet pushed). Reviewed at54367e74.Decision (2026-12-03, recorded as D7 in
code-reviews/2026-12-02-perf-bugs/PLAN.md): client keepalive defaults: 30 s ping, 10 s timeout, also while no call is active, configurable in each client's options; must stay within the server policy in #253.Merged to
mainat68043411(pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA.All CDN/CGO/CRS/CJV/CPY findings fixed. Keepalive 30 s / 10 s / idle pings in all five clients. Behaviour changes: Java
close()→shutdownNow()(graceful:closeAndAwaitTermination()); .NET gateway-sent cancel raisesMxGatewayException. Java CLI batch channel reuse split out to #260. Cross-language e2e matrix not yet run.