Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INDY-1206] select_primaries now called after poolLedger catchup or if we are ordering node txn #588

Merged
merged 4 commits into from
Mar 26, 2018

Conversation

lampkin-diet
Copy link

Signed-off-by: Andrew Nikitin [email protected]

@@ -1800,6 +1804,8 @@ def allLedgersCaughtUp(self):
.format(CATCH_UP_PREFIX, self),
extra={'cli': True})
self.no_more_catchups_needed()
# select primaries after pool ledger caughtup
self.select_primaries()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check if view_change_in_progress is False?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe we can check if the expected number of replicas is greater than the current one?

@lampkin-diet
Copy link
Author

test this please

@ashcherbakov ashcherbakov merged commit a24859c into hyperledger:master Mar 26, 2018
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Apr 9, 2018
…f we are ordering node txn (hyperledger#588)

* [INDY-1206] select_primaries now called after poolLedger catchup or if we are ordering node txn

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1206] Rollback postTxnFromCatchupAddedToLedger logic

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1206] Move select_primaries() to AllLedgersCaughtup

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1206] Added view_change_in_progress check

Signed-off-by: Andrew Nikitin <[email protected]>
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Apr 10, 2018
…f we are ordering node txn (hyperledger#588)

* [INDY-1206] select_primaries now called after poolLedger catchup or if we are ordering node txn

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1206] Rollback postTxnFromCatchupAddedToLedger logic

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1206] Move select_primaries() to AllLedgersCaughtup

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1206] Added view_change_in_progress check

Signed-off-by: Andrew Nikitin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants