mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed `RPCFactory` and the SDK client factory close the gRPC connections they own on shutdown, as fx stop hooks. Removes the four gRPC connection ignores from the leak test. Also bumps `auto-scaled-workers` to pick up temporalio/temporal-auto-scaled-workers#108, without which the SDK connection stays open. ## Why? Nothing released these connections, so every connection's goroutines and the membership resolver watching for changes outlived the cluster. Clients from `NewClient` share the system client's ref-counted connection, so the SDK closes it only once the last one is closed. ## How did you test it? - [x] built - [x] covered by existing tests `make leak-test` at the CI settings reports `no unexpected goroutines`. Each change was verified to fail the leak test when reverted.