You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shardservice: Close leaves RPC listener accepting connections #29709
pkg/shardservice.service.Close stops background work and closes the RPC client, but does not close the RPC server created by initRemote. After Close returns, the Unix listener still accepts connections and its accept goroutine remains alive.
Against revision 82322ceced2c5cc8207953ab0111f40e4424ceef, create a real shard service, call Close, then dial its Unix socket. The dial succeeds; an external regression probe fails with closed shard service still accepts connections.
Close should release both owned RPC endpoints, reject new connections, and preserve shutdown errors while attempting all cleanup.
The shared test fixture also immediately invokes leaktest.AfterTest(t)() at entry and cleans up only after the scenario returns normally. Its resources and leak detection must unwind correctly after assertion failure or panic.
Fix and evidence
PR #29708 restores RPC server teardown and independent deferred fixture cleanup. Owning-package normal, race, and coverage-mode checks pass; negative controls detect the original leak, and real fixture probes verify failure-path cleanup.
Activity
fix(shardservice): close owned RPC server and clean test fixtures (#2…
fulltext2: reuse prefix iterator posting offsets (#29696)