13994: Fix service discovery race.
authorTom Clegg <tclegg@veritasgenetics.com>
Mon, 17 Sep 2018 18:33:59 +0000 (14:33 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Mon, 17 Sep 2018 18:33:59 +0000 (14:33 -0400)
commitddc180fa5200d9d8fac59cc5041d7d452b68e6a2
tree4ddc4036f0304c70a03f252994ce64b630b3392a
parent8e7c30852f1cf244ae3c58e93acea705739e8625
13994: Fix service discovery race.

Making keepclient.RefreshServiceDiscovery asynchronous didn't work
out: tests rely on it to ensure old services won't be used.

Instead, speed things up a bit by refreshing all known clients'
service lists concurrently instead of serially.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
sdk/go/keepclient/discover.go