-
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-2498] Fix Panic upon Recover (CouchdB)
If peers starts up and there is no CouchDB state database, there is a nil pointer panic due to nil savepoint. This changeset fixes it by returning nil height when there is nil savepont. Nil height for savepoint will trigger full state db recovery upon peer startup. Added test to ensure nil height is returned in these cases. Ensured that leveldb and couchdb behave consistently now. Tested recovery on both leveldb and couchdb. Change-Id: I0f2f2f89d7d3176fcf4a560d20665bd59c4d8a5d Signed-off-by: denyeart <enyeart@us.ibm.com>
- Loading branch information
Showing
5 changed files
with
19 additions
and
13 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