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-1866: Fix memory leak #1012

Merged
merged 4 commits into from
Dec 6, 2018
Merged

Conversation

skhoroshavin
Copy link
Member

Signed-off-by: Sergey Khoroshavin sergey.khoroshavin@dsr-corporation.com

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin skhoroshavin changed the title INDY-1866: Fix memory leak [WIP] INDY-1866: Fix memory leak Dec 5, 2018

# Make sure that verified req list is empty
for node in txnPoolNodeSet:
assert len(node.clientAuthNr._verified_reqs) == 0
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 use authNr instead of clientAuthNr?

Copy link
Member Author

Choose a reason for hiding this comment

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

In order to use authNr we need a Request object which we don't have here. While we can exploit the fact that authNr returns clientAuthNr unconditionally and pass some garbage I believe it's more clear just to use clientAuthNr directly, at least for now.


# Let last node catch up
# TODO: Change to some more sensible wait condition
looper.runFor(5.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

ensure_all_nodes_have_same_data?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if this is actually needed in this test


# Let last node catch up
# TODO: Change to some more sensible wait condition
looper.runFor(5.0)
Copy link
Contributor

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 check that Propgates have been actually received for the ordered request.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Sergey Khoroshavin added 3 commits December 6, 2018 12:08
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin skhoroshavin changed the title [WIP] INDY-1866: Fix memory leak INDY-1866: Fix memory leak Dec 6, 2018
@ashcherbakov ashcherbakov merged commit 9491ba2 into hyperledger:master Dec 6, 2018
@skhoroshavin skhoroshavin deleted the indy-1866 branch December 6, 2018 11:21
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