Skip to content

Intensify operations on same key in crash test - #12148

Closed
hx235 wants to merge 1 commit into
meta:mainfrom
hx235:small_db_stress_test
Closed

hx235 wants to merge 1 commit into
meta:mainfrom
hx235:small_db_stress_test

Conversation

@hx235

@hx235 hx235 commented Dec 14, 2023 •

Copy link
Copy Markdown
Contributor

Context/Summary:

Continued from #12127, we can randomly reduce the # max key to coerce more operations on the same key. My experimental run shows it surfaced more issue than just #12127.

I also randomly reduce the related parameters, write buffer size and target file base, to adapt to randomly lower number of # max key. This creates 4 situations of testing, 3 of which are new:

  1. high # max key with high write buffer size and target file base (existing)
  2. high # max key with low write buffer size and target file base (new, will go through some rehearsal testing to ensure we don't run out of space with many files)
  3. low # max key with high write buffer size and target file base (new, keys will stay in memory longer)
  4. low # max key with low write buffer size and target file base (new, experimental runs show it surfaced even more issues)

Test plan:

  • [Ongoing] Rehearsal stress test
  • Monitor production stress test

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@hx235 hx235 added the WIP Work in progress label Dec 14, 2023

@jaykorean jaykorean left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@hx235
hx235 force-pushed the small_db_stress_test branch from 923dce2 to 6c17eab Compare December 16, 2023 19:47
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@hx235 has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@hx235 merged this pull request in 5b981b6.

Tim-Reed pushed a commit to Tim-Reed/rocksdb that referenced this pull request Oct 1, 2026
Summary:
**Context/Summary:**

Continued from meta#12127, we can randomly reduce the # max key to coerce more operations on the same key. My experimental run shows it surfaced more issue than just meta#12127.

I also randomly reduce the related parameters, write buffer size and target file base, to adapt to randomly lower number of # max key.  This creates 4 situations of testing, 3 of which are new:

1. **high** # max key with **high** write buffer size and target file base (existing)
2. **high** # max key with **low** write buffer size and target file base (new, will go through some rehearsal testing to ensure we don't run out of space with many files)
3. **low** # max key with **high** write buffer size and target file base (new, keys will stay in memory longer)
4. **low** # max key with **low** write buffer size and target file base (new, experimental runs show it surfaced even more issues)

Pull Request resolved: meta#12148

Test Plan:
- [Ongoing] Rehearsal stress test
- Monitor production stress test

Reviewed By: jaykorean

Differential Revision: D52174980

Pulled By: hx235

fbshipit-source-id: bd5e11280826819ca9314c69bbbf05d481c6d105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants