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

move db_stress locking to StressTest::Test*() functions #10678

Closed
wants to merge 1 commit into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Sep 14, 2022

One problem of the previous strategy was NonBatchedOpsStressTest::TestIngestExternalFile() could release the lock for rand_keys[0] in rand_column_families[0], and then subsequent operations in the same loop iteration (e.g., TestPut()) would run without locking. This PR changes the strategy so each Test*() function is responsible for acquiring and releasing its own locks.

@facebook-github-bot
Copy link
Contributor

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

@ajkr ajkr requested a review from hx235 September 14, 2022 19:26
Copy link
Contributor

@hx235 hx235 left a comment

Choose a reason for hiding this comment

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

LGTM - please ensure crash test is stable before landing.

@ajkr
Copy link
Contributor Author

ajkr commented Sep 15, 2022

Thanks for the review! Yeah I ran each job once and there was no relevant failure. I checked some jobs to verify no deadlock but not all.

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.

None yet

3 participants