-
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-9132] Fix data race in core/chaincode/shim
Fix data race in the shim A data race existed between reading and setting the error value returned from stream.Recv(). Modify the shim to avoid the race and add a bit more alignment between the peer and shim stream processing functions. Fix data races in MockCCComm - Quit was causing a race between channel send and close. Resolved by wiring a channel to Run and closing send and receive after the done channel had closed. - The keep alive go routine was racing on the keepAlive message during send. Wired the done channel into the keep-alive go routine. - Some tests are setting responses while go routines are running. Work around this bad behavior with a lock to avoid restructuring tests. Change-Id: I49bab82336bbbeb941b7db2d8bd279f254b4ec9f Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
- Loading branch information
Showing
7 changed files
with
100 additions
and
111 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
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
Oops, something went wrong.