Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the goroutine leak in StubServer
--- (If this PR fixes a github issue, please add `Fixes #<xyz>`) Fixes etcd-io#13023 (or if this PR is one task of a github issue, please add `Master Issue: #<xyz>` to link to the master issue) Master Issue: etcd-io#13023 *Motivation* Currently, StubServer can stop itself (by Stop()) before it start its grpc server (created by Start()). This race condition may lead to a goroutine leak mentioned by etcd-io#13023. *Modifications* This PR add a channel to force the Stop() started after Start() *Verify this change* Please pick either of following options. - This change is already covered by existing tests, such as *(please describe tests)*. Test/TestEtcdGrpcResolver
- Loading branch information