This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mutex deadlocks in PeerClient (#223)
* fix race issuers in PeerClient * undo changes in comments * more fixes * final fixes * do not create 1 connection every time * add comment * remove comment * fix lint * add ctx back to shutdown * move conn.Close out of goroutine * fix lint * oops * make it blocking * put cap of 1 second to NewPeerClient connect * undo put cap of 1 second to NewPeerClient connect * fix another leak * on peer shutdown, clear all errors * add time.sleep to end of TestHealthCheck * use testutil.UntilPass * check health of every instance * use cluster.GetAllPeers
- Loading branch information
1 parent
f740f2b
commit 63fd9ff
Showing
8 changed files
with
134 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.