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-1881: Catchup clearing #1004

Merged
merged 10 commits into from
Dec 6, 2018
Merged

Conversation

ArtObr
Copy link
Contributor

@ArtObr ArtObr commented Nov 30, 2018

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/server/node.py Outdated Show resolved Hide resolved
plenum/server/node.py Outdated Show resolved Hide resolved
plenum/server/replica.py Outdated Show resolved Hide resolved
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/server/node.py 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])
Copy link
Contributor

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?

Copy link
Contributor Author

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

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())
Copy link
Contributor

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?

Copy link
Contributor Author

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>
@ashcherbakov ashcherbakov merged commit 53d0c8f into hyperledger:master Dec 6, 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.

None yet

2 participants