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

Call Clean() on JobContext before destruction in UT #13406

Closed
wants to merge 1 commit into from

Conversation

hx235
Copy link
Contributor

@hx235 hx235 commented Feb 18, 2025

Context/Summary:
It's documented that // For non-empty JobContext Clean() has to be called at least once before before destruction. This is violated in a UT accidentally so causing the assertion failure assert(logs_to_free.size() == 0); in ~JobContext. This PR is to fix it.

Test:
Monitor for future UT assertion failure in TEST_F(DBWALTest, FullPurgePreservesRecycledLog)

@facebook-github-bot
Copy link
Contributor

@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Member

@cbi42 cbi42 left a comment

Choose a reason for hiding this comment

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

LGTM

@facebook-github-bot
Copy link
Contributor

@hx235 merged this pull request in 6aacec0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants