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-1836: clear monitor data related to dropped request. #1033

Merged
merged 3 commits into from
Dec 18, 2018

Conversation

sergey-shilov
Copy link
Contributor

Signed-off-by: Sergey Shilov sergey.shilov@dsr-company.com

Sergey Shilov added 2 commits December 17, 2018 15:53
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
Copy link
Member

@skhoroshavin skhoroshavin left a comment

Choose a reason for hiding this comment

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

It would be great to have unit tests checking that force_req_drop doesn't break anything inside RequestTracker.

if key in self._unordered:
self._unordered.discard(key)
if key in self._handled_unordered:
self._handled_unordered.discard(key)
Copy link
Member

Choose a reason for hiding this comment

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

When discarding some value from set there is no need to check that it was here in the first place

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe that checking that force_req_drop doesn't break anything inside RequestTracker is done by test_req_drop_* group of tests that call this function in a various stages of request processing and then check that pool is functional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added tests.

Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
@ashcherbakov ashcherbakov merged commit 07f6c93 into hyperledger:master Dec 18, 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

3 participants