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

Discard listener for incremental release filters to avoid python holding it forever. #2055

Merged
merged 6 commits into from
Mar 1, 2022

Conversation

cpwright
Copy link
Contributor

@cpwright cpwright commented Feb 28, 2022

After we are done releasing rows incrementally, we should drop the reference from the filter to the listener. A heap dump showed a global JNI reference to the filter, which then held onto the listener, which in turn held onto the filtered table, which held onto its parent that contained gigabytes of selected data. With this change I can run more incremental tests in a single container without restarting it.

Additionally, by requesting a refresh from our terminal notifications we can eliminate the inter cycle gap, which can distort tests that are fairly quick by doing nothing between cycles (e.g., a "2 second" test may end up with almost a second of wait time after the initial release.

jcferretti
jcferretti previously approved these changes Feb 28, 2022
@cpwright cpwright changed the title Cpw discardlistener Discard listener for incremental release filters to avoid python holding it forever. Feb 28, 2022
jcferretti
jcferretti previously approved these changes Mar 1, 2022
@cpwright cpwright merged commit f87f13d into deephaven:main Mar 1, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants