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

[jsapi] Set rollback to null to enable orphan cleanup #1476

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

nbauernfeind
Copy link
Member

@nbauernfeind nbauernfeind commented Oct 22, 2021

Previously, rollbacks were not nulled out, in an attempt to avoid losing useful information as the table transitioned between states. Bug reports that applied to these old changes were used to test this commit; this does not alter their behavior (though I could not test the dashboard related bug).

Now, when an operation reaches a terminal state, its rollback should be cleared so that it is eligible for cleanup if it ever becomes an orphan.

While testing I also came across an additional CTS assertion error. Failed requests must not attempt to set their client state as running. If a table reaches a terminal state, it must always have its rollback nulled out, to avoid leaking the rollback.

Minor test change to table_basic.html to use global variables so that they are easily accessible from the developer console.

Fixes #1471

@nbauernfeind nbauernfeind added bug Something isn't working jsapi labels Oct 22, 2021
@nbauernfeind nbauernfeind added this to the Oct 2021 milestone Oct 22, 2021
@nbauernfeind nbauernfeind self-assigned this Oct 22, 2021
@nbauernfeind nbauernfeind merged commit 0f7c1f5 into deephaven:main Oct 25, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[jsapi] leaks table exports
2 participants