-
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-1881: Catchup clearing #1004
Conversation
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Outdated
Show resolved
Hide resolved
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Show resolved
Hide resolved
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Show resolved
Hide resolved
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Show resolved
Hide resolved
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Outdated
Show resolved
Hide resolved
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Outdated
Show resolved
Hide resolved
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Outdated
Show resolved
Hide resolved
looper.run(eventually(node_caughtup, behind_node, count, retryWait=1)) | ||
|
||
assert len(behind_node.requests) == req_num | ||
assert all(r.executed for r in behind_node.requests.values() if behind_node.seqNoDB.get(r.request.key)[1]) |
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.
Should we expect that the request is removed from resuests
(and all other queues) at all?
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.
No, because of backup replicas. I will create two separate tests for this
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Outdated
Show resolved
Hide resolved
plenum/test/batching_3pc/catch-up/test_clearing_requests_after_catchup.py
Outdated
Show resolved
Hide resolved
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
|
||
looper.run(eventually(node_caughtup, behind_node, count, retryWait=1)) | ||
|
||
assert all(r.executed and r.forwardedTo == 0 for r in behind_node.requests.values()) |
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 can't we check that requests queue (as well as queue in re_authenticator and all replicas) is empty?
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.
Fixed
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr artemobruchnikov@gmail.com