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-2140: Get rid of legacy view change completion check #1371

Merged
merged 9 commits into from
Oct 18, 2019

Conversation

skhoroshavin
Copy link
Member

No description provided.

Sergey Khoroshavin added 3 commits October 10, 2019 19:00
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Oct 11, 2019

This pull request introduces 3 alerts and fixes 12 when merging ac6946e into cd8d150 - view on LGTM.com

new alerts:

  • 3 for Unused import

fixed alerts:

  • 11 for Unused import
  • 1 for NotImplemented is not an Exception

Sergey Khoroshavin added 3 commits October 16, 2019 19:47
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Oct 16, 2019

This pull request introduces 1 alert and fixes 11 when merging 45617f6 into de1f126 - view on LGTM.com

new alerts:

  • 1 for __init__ method calls overridden method

fixed alerts:

  • 10 for Unused import
  • 1 for NotImplemented is not an Exception

@@ -301,7 +301,11 @@ def _finish_view_change(self):
self.last_completed_view_no = self._data.view_no

def _propose_view_change(self, suspision_code):
proposed_view_no = self._data.view_no + 1
proposed_view_no = self._data.view_no
# TODO: For some reason not incrementing view_no in most cases leads to lots of failing/flaky tests
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't get this TODO comment... The only situation when we don't need to increment viewNo is STATE_SIGS_ARE_NOT_UPDATED code. So, what is the issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was ported from original code in old ViewChanger. Some time ago (last year AFAIR) we had a theory that during view change we shouldn't send IC with future view no unless it is a view change timeout itself. For some reason that didn't work, at that time we gave up and decided to just leave a comment for a better time. I'm just preserving it.

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin skhoroshavin changed the title INDY-2140: Get rid of legacy view change completion check [WIP] INDY-2140: Get rid of legacy view change completion check Oct 17, 2019
@skhoroshavin
Copy link
Member Author

There is high chance that after last commit all tests will pass, however I would still refrain from merging this (unless we find it critical enough to merge ASAP) because some edge cases of view change now take twice as much time (hence increase in timeouts in tests) which doesn't look healthy at all.

@lgtm-com
Copy link

lgtm-com bot commented Oct 17, 2019

This pull request introduces 1 alert and fixes 11 when merging 1cb586a into d3ee8dd - view on LGTM.com

new alerts:

  • 1 for __init__ method calls overridden method

fixed alerts:

  • 10 for Unused import
  • 1 for NotImplemented is not an Exception

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Oct 17, 2019

This pull request introduces 1 alert and fixes 11 when merging 4e086fc into d3ee8dd - view on LGTM.com

new alerts:

  • 1 for __init__ method calls overridden method

fixed alerts:

  • 10 for Unused import
  • 1 for NotImplemented is not an Exception

@ashcherbakov ashcherbakov merged commit 617f3b5 into hyperledger:master Oct 18, 2019
@skhoroshavin skhoroshavin changed the title [WIP] INDY-2140: Get rid of legacy view change completion check INDY-2140: Get rid of legacy view change completion check Oct 21, 2019
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.

None yet

2 participants