-
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-1623] Add restart support to Kafka orderer
https://jira.hyperledger.org/browse/FAB-1623 Allow a restarted ordering shim to pick up ordering exactly from where it left it off. This changeset: 1. Adds a `KafkaMetadata` proto message definition to hold the orderer-related metadata that will be written with every block on the local ledger. 2. Modifies the Kafka-based orderer so that (a) it reads that info upon booting up and (b) it then seeks to the appropriate offset. A convoluted and somewhat tautological unit ("unit") test has been added to test this functionality, but we are really starting to hit the limit of what we can do with the provided mock structures. This path will be revisited with BDD tests within the next few weeks. I've also renamed the offset-related variables in all of the tests to make things easier to keep track of. Review starting point: - fabric/protos/orderer/kafka.proto - fabric/orderer/kafka/orderer.go [1] https://jira.hyperledger.org/browse/FAB-1773 [2] https://jira.hyperledger.org/browse/FAB-1623 Change-Id: I1314a2361844dd4adbd78bf57bb08aaee358dc6f Signed-off-by: Kostas Christidis <kostas@christidis.io>
- Loading branch information
1 parent
19ad687
commit 2f0aa7d
Showing
6 changed files
with
219 additions
and
72 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.