-
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.
To account for cases when peer and couchdb start at same time, 2 minutes of retries are done. This does not work well for chaincode execution though. Need to fix it such that peer startup verification retries more times than endorsement/commit interactions with CouchDB, ideally configurable. Add two new CouchDB configuration options in core.yaml couchDBConfig: couchDBAddress: 127.0.0.1:5984 username: password: maxRetries: 3 maxRetriesOnStartup: 10 - maxRetries will control the max number of retries for http errors when connecting with CouchDB. - maxRetriesOnStartup will be a separate configuration option for specifying the number of retries during startup. This needs to be a larger number than the normal retries. - Handling of 404 error is already handled correctly - 500 errors and 4XX errors will not be retried. - Add a change to VerifyConnection to allow for the maxRetriesOnStartup to be used for retry logic in handleRequest Change-Id: Ibdf48444ef0728825a168bf4deebde5fa43f12ac Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
- Loading branch information
Chris Elder
committed
Apr 17, 2017
1 parent
7984725
commit 987496f
Showing
10 changed files
with
157 additions
and
129 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
Oops, something went wrong.