-
Notifications
You must be signed in to change notification settings - Fork 370
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-1113: Node disconnection, view change tests #551
INDY-1113: Node disconnection, view change tests #551
Conversation
spivachuk
commented
Feb 26, 2018
•
edited
Loading
edited
- 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.
- 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.
- Added a workaround to avoid hang-ups of test_6_nodes_pool_cannot_reach_quorum_with_2_disconnected.
Add new method getNodesServices (hyperledger#506)
- 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]>
…e-disconnection-fix Signed-off-by: Nikita Spivachuk <[email protected]> # Conflicts: # plenum/test/node_request/test_quorum_disconnected.py # plenum/test/pool_transactions/helper.py # plenum/test/test_stack.py
Could one of the committers please verify this patch? |
test this please |
plenum/test/helper.py
Outdated
vNo, = viewNos | ||
if expectedViewNo is not None: | ||
assert vNo >= expectedViewNo, ','.join(['{} -> Ratio: {}'.format( | ||
node.name, node.monitor.masterThroughputRatio()) for node in nodes]) | ||
assert vNo == expectedViewNo, 'Expected {}, but got {}'.format(expectedViewNo, vNo) |
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.
It must be >=
, since there may be more than one view change.
@@ -540,7 +541,8 @@ def new_client(looper, poolTxnClientData, txnPoolNodeSet, client_tdir): | |||
return client, wallet | |||
|
|||
|
|||
def disconnectPoolNode(poolNodes: Iterable, | |||
def disconnectPoolNode(looper: Looper, |
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.
Why do we need looper here?
- 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]>
- 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]>
- 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]>
Signed-off-by: Nikita Spivachuk <[email protected]>
test this please |
* 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-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]>