Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-10804] queue chaincode tx on container start
Until now, when transactions arrive for a chaincode that is not running, the first transaction causes the chaincode to launch while all others are rejected until the chaincode launch has completed. This is unfriendly and unexpected behavior. With this change, when transactions arrive for chaincode that is launching, the transactions will be queued until the launch process has completed. If the launch fails for some reason, all queued transactions will be terminated with the error from the launch. If the initial launch times out, all queued transactions (regardless of arrival) will be terminated with the timeout error. Change-Id: I12a9750b1a57e3e494cf4026539ea490dcf0573e Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
- Loading branch information
Showing
6 changed files
with
218 additions
and
94 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
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
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.