-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-18329] Fix data race in cluster/comm_test#TestRenewCertificates
This commit fixes a data race in orderer/common/cluster/comm_test.go#TestRenewCertificates. The race occurred because the TLS configuration was updated from the test goroutine, while a gRPC connection was being established from another goroutine, and as a result, the TLS configuration was loaded without memory synchronization with the first goroutine. I made the test close the gRPC connections before reconfiguring the communication layer. Change-Id: I82b9cc685e9160e480ce77ec7e0a233b106eb0e5 Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
23 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