Skip to content

Master #87

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

Merged
merged 3 commits into from
Mar 5, 2018
Merged

Master #87

merged 3 commits into from
Mar 5, 2018

Conversation

spivachuk
Copy link
Owner

No description provided.

sergey-shilov and others added 3 commits February 28, 2018 11:57
…539)

* INDY-1112: change primeries election procedure for backup instances.

Now primaries for backup instances are choosen in round-robin
manner always starting from primary. If the next node is a primary
for some instance then this node is skipped. So the first non-primary
node is choosen as primary for current instance. Such approach allows
to avoid election of instances of the same node as a primeries for
different instances.
The election procedure of the primary for master instance is not changed.

Signed-off-by: Sergey Shilov <[email protected]>

* Add some stylistical fixes, add comments.

Signed-off-by: Sergey Shilov <[email protected]>

* Add test for primary demotion and promotion.

Signed-off-by: Sergey Shilov <[email protected]>

* Add test for primaries selection routines.

Signed-off-by: Sergey Shilov <[email protected]>

* Re-factor primary selector tests.

Signed-off-by: Sergey Shilov <[email protected]>

* Remove adding of node itself to nodeReg during initialisation of txnPoolManager.

Now a node adds itself to nodeReg during catch-up of pool ledger.

Signed-off-by: Sergey Shilov <[email protected]>

* Fix test.

Signed-off-by: Sergey Shilov <[email protected]>

* Update node's HA in node registry on pool ledger catch-up reply.

Signed-off-by: Sergey Shilov <[email protected]>

* Add separate checks for IP/port to be updated for HA and cliHA.

Signed-off-by: Sergey Shilov <[email protected]>
* INDY-1113: Node disconnection, view change tests

- Corrected the procedures of node disconnection and reconnection in tests.
- Removed a workaround patch which had become unnecessary from start_stopped_node function in tests.
- Corrected existing tests according to the fixes specified above.
- Added a test verifying that a view change is restarted each time when the previous one is timed out.
- Added a test verifying that a disconnected node with a lagged view accepts the current view from the other nodes on re-connection.

Signed-off-by: Nikita Spivachuk <[email protected]>

* INDY-1113: Return not strict view no comparison

- Returned back the not strict view number comparison in checkViewNoForNodes function in tests since the strict comparison may cause failures of some tests.
- Corrected parameter lists of some test helper functions.

Signed-off-by: Nikita Spivachuk <[email protected]>

* INDY-1113: Fixed error with future

- Fixed the cause of a potential error with a not retrieved exception of a future in sdk_get_replies function.
- Corrected test helpers for Indy SDK.

Signed-off-by: Nikita Spivachuk <[email protected]>

* INDY-1113: Avoided test hang-ups

- Added a workaround to avoid hang-ups of test_6_nodes_pool_cannot_reach_quorum_with_2_disconnected.

Signed-off-by: Nikita Spivachuk <[email protected]>

* INDY-1113: Corrected a test

Signed-off-by: Nikita Spivachuk <[email protected]>
* [INDY-1165] Added check, that proofs already received

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

* [INDY-1165] Remove retry timeout changing

Signed-off-by: Andrew Nikitin <[email protected]>
@spivachuk spivachuk merged commit d396e9d into spivachuk:master Mar 5, 2018
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