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

Fix primary selection after primary demotion (INDY-463) #354

Merged

Conversation

andkononykhin
Copy link
Contributor

No description provided.

checkViewNoForNodes(restNodes, 0)

primariesIdxs = getPrimaryNodesIdxs(restNodes)
assert restNodes[primariesIdxs[0]].name != master_node.name
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also check that pool is functional after this?

logger.info("3. force view change 3 and check final viewNo")
ensure_view_change_complete(looper, restNodes)
viewNo3 = checkViewNoForNodes(restNodes)
assert viewNo3 == viewNo2 + 1
Copy link
Contributor

@ashcherbakov ashcherbakov Aug 23, 2017

Choose a reason for hiding this comment

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

How do we check that demoted primary is really skipped? Can we also check that pool is always functional after each view change?

@ashcherbakov ashcherbakov merged commit 1ac198c into hyperledger:master Aug 28, 2017
@andkononykhin andkononykhin deleted the bugfix/fix_break_after_restart branch August 29, 2017 08:27
lovesh pushed a commit that referenced this pull request Sep 6, 2017
* Node status tool base support

* Improve node status tool support

* Add OOP, renaming

* Remove unsupported fields

* Renaming

* Add dynamic tests

* Make node status tool safe

* Fix primary selection after primary demotion (INDY-463) (#354)

* modified rank routine, added test cases for primary demotion

* fixed pep8

* fixed nodes oreder initialization

* added checks that pool is functional after recofigurations

* added additional view change to ensure original master is skipped

* Merged hotfixes from stable for wallet and genesis pool transactions file migration and readme file.

* Fix validator info tool (#365)

* Don't add ip addresses, one-shot dump on start

* Parameterize zmq network protocol

* Cherry-pick cb7d068 8642be5 c37e835 from master
Toktar pushed a commit to Toktar/indy-plenum that referenced this pull request Mar 1, 2021
* Node status tool base support

* Improve node status tool support

* Add OOP, renaming

* Remove unsupported fields

* Renaming

* Add dynamic tests

* Make node status tool safe

* Fix primary selection after primary demotion (INDY-463) (hyperledger#354)

* modified rank routine, added test cases for primary demotion

* fixed pep8

* fixed nodes oreder initialization

* added checks that pool is functional after recofigurations

* added additional view change to ensure original master is skipped

* Merged hotfixes from stable for wallet and genesis pool transactions file migration and readme file.

* Fix validator info tool (hyperledger#365)

* Don't add ip addresses, one-shot dump on start

* Parameterize zmq network protocol

* Cherry-pick cb7d068 8642be5 c37e835 from master

Signed-off-by: Andrey Kononykhin <[email protected]>
Sign-off-executed-by: toktar <[email protected]>
Approved-at: h-master
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