-
Notifications
You must be signed in to change notification settings - Fork 374
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
[INDY-1206] select_primaries now called after poolLedger catchup or if we are ordering node txn #588
Conversation
…f we are ordering node txn Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
Signed-off-by: Andrew Nikitin <[email protected]>
plenum/server/node.py
Outdated
@@ -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() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
Signed-off-by: Andrew Nikitin <[email protected]>
test this please |
…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]>
…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]>
Signed-off-by: Andrew Nikitin [email protected]