-
Notifications
You must be signed in to change notification settings - Fork 366
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-2262: use NodeRegHandler for Primary Selection #1398
Conversation
ashcherbakov
commented
Nov 8, 2019
•
edited
edited
- use node registry as it was at the beginning of last view for Primary Selection
- unskip corresponding integration tests
- fixes in NodeRegHandler related to recovering of primaries for the previous view after cathcup
- get rid of Future Primaries Batch Handler
- get rid of primaries in PrePrepares
- process Checkpoints for future views to be able to caught up and cleanups of Checkpointer validator
- simplify PrimarySelector logic
- get rid of outdated Config parameters related to view change
- remove outdated code and cleanup
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
…ov/indy-plenum into indy-2262-2
…for future views Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
This pull request introduces 3 alerts and fixes 2 when merging 2f9ed16 into e1cfb88 - view on LGTM.com new alerts:
fixed alerts:
|
…ePrepare Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
…nto indy-2262-2 Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com> # Conflicts: # plenum/server/future_primaries_batch_handler.py
This pull request introduces 4 alerts and fixes 1 when merging 6b6b1fe into e9385c5 - view on LGTM.com new alerts:
fixed alerts:
|
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
This pull request fixes 1 alert when merging 5a7b84a into e9385c5 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging ca2ed6b into e9385c5 - view on LGTM.com fixed alerts:
|
…ing primaries Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
… fix tests. Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
This pull request fixes 1 alert when merging 1576fbf into e9385c5 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging 59e8c76 into e9385c5 - view on LGTM.com fixed alerts:
|
…re than once in a view Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
This pull request fixes 1 alert when merging f4eefe2 into e9385c5 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging 8f498af into e9385c5 - view on LGTM.com fixed alerts:
|
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.
Please, add a second approve for a double check before merge.
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.
This is a great PR, worth merging ASAP
# - self.instance_changes.remove_view(self.view_no) | ||
|
||
def propose_view_change(self, suspicion=Suspicions.PRIMARY_DEGRADED): | ||
proposed_view_no = self.view_no | ||
# TODO: For some reason not incrementing view_no in most cases leads to lots of failing/flaky tests | ||
# if suspicion == Suspicions.INSTANCE_CHANGE_TIMEOUT or not self.view_change_in_progress: |
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.
I don't think this comment should be removed