-
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.
Report correct reason of stream abort in orderer cluster
This commit fixes a bug that makes the cluster communication infrastructure always report an "aborted" reason after a stream terminates. The reason for the bug is that the serviceStream() method was always overriding the real reason the stream was terminated, with the same "aborted" reason. Moving the stream termination reason to reside inside the sync.Once block along with the rest of the termination logic solved this bug. Change-Id: I7060a3c5630c6d28c73f025de8b85061077638d6 Signed-off-by: Yacov Manevich <yacovm@il.ibm.com> (cherry picked from commit f0584c6)
- Loading branch information
Showing
2 changed files
with
62 additions
and
15 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