Skip to content

Run tiered storage crash test with leveled compaction (#15628) - #15628

Closed
jaykorean wants to merge 1 commit into
meta:mainfrom
jaykorean:export-D129451754
Closed

jaykorean wants to merge 1 commit into
meta:mainfrom
jaykorean:export-D129451754

Conversation

@jaykorean

@jaykorean jaykorean commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Why: the tiered storage crash test (--test_tiered_storage) never runs leveled compaction. When no compaction style is requested, db_crashtest.py picks universal for tiered runs, with a TODO to enable tiered+leveled once "Corruption: Unsafe to store Seq later than snapshot" is fixed. That error came from per-key placement in leveled compaction with snapshots (see T187570195), and D67683210 (#13256, Jan 2025) removed it by reworking output-level placement around a single sequence number threshold. The error string no longer exists in the code base and PrecludeWithCompactStyleTest covers the formerly failing limited-range compaction for both styles. Leveled compaction with preclude_last_level_data_seconds / last_level_temperature is a supported configuration, but it only gets unit-test coverage today.

Previous behavior: blackbox tiered runs always used universal compaction. Whitebox tiered runs used universal for the kill and normal check modes, plus the dedicated universal and FIFO modes.

New behavior: when compaction_style is not given, a tiered crash-test series picks leveled or universal (50/50) once in gen_cmd_params(), so the style stays fixed for every run in the series. Whitebox still adds its universal and FIFO check modes, and the existing destroy_db_initially handling covers style transitions. Non-tiered runs are unchanged (leveled).

Safety and limitations: test-only change. The remaining leveled gap noted in tiered_compaction_test (FIXME: doesn't yet work with leveled compaction) is about how aggressively data migrates back out of the last level after a preclude option change; it affects placement, not correctness, and the crash test does not verify placement.

Landing order: stacked on D129457762, the fix for the RegisterCompaction overlap assertion this change exposed (T296653904). Land D129457762 first.

Requested by: Jay Huh (jewoongh)


landed-with-radar-review

Differential Revision: D129451754

@meta-cla meta-cla Bot added the CLA Signed label Nov 9, 2026
@meta-codesync

meta-codesync Bot commented Nov 9, 2026

Copy link
Copy Markdown

@jaykorean has exported this pull request. If you are a Meta employee, you can view the originating Diff in D129451754.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

✅ clang-tidy: No findings on changed lines

Completed in 0.0s.

@meta-codesync meta-codesync Bot changed the title Run tiered storage crash test with leveled compaction Run tiered storage crash test with leveled compaction (#15628) Nov 9, 2026
jaykorean added a commit to jaykorean/rocksdb that referenced this pull request Nov 9, 2026
Summary:

Why: the tiered storage crash test (`--test_tiered_storage`) never runs leveled compaction. When no compaction style is requested, `db_crashtest.py` picks universal for tiered runs, with a TODO to enable tiered+leveled once "Corruption: Unsafe to store Seq later than snapshot" is fixed. That error came from per-key placement in leveled compaction with snapshots (see T187570195), and D67683210 (meta#13256, Jan 2025) removed it by reworking output-level placement around a single sequence number threshold. The error string no longer exists in the code base and `PrecludeWithCompactStyleTest` covers the formerly failing limited-range compaction for both styles. Leveled compaction with `preclude_last_level_data_seconds` / `last_level_temperature` is a supported configuration, but it only gets unit-test coverage today.

Previous behavior: blackbox tiered runs always used universal compaction. Whitebox tiered runs used universal for the kill and normal check modes, plus the dedicated universal and FIFO modes.

New behavior: when `compaction_style` is not given, a tiered crash-test series picks leveled or universal (50/50) once in `gen_cmd_params()`, so the style stays fixed for every run in the series. Whitebox still adds its universal and FIFO check modes, and the existing `destroy_db_initially` handling covers style transitions. Non-tiered runs are unchanged (leveled).

Safety and limitations: test-only change. The remaining leveled gap noted in `tiered_compaction_test` (`FIXME: doesn't yet work with leveled compaction`) is about how aggressively data migrates back out of the last level after a preclude option change; it affects placement, not correctness, and the crash test does not verify placement.

Landing order: stacked on D129457762, the fix for the RegisterCompaction overlap assertion this change exposed (T296653904). Land D129457762 first.

Requested by: Jay Huh (jewoongh)

Differential Revision: D129451754
Summary:

Why: the tiered storage crash test (`--test_tiered_storage`) never runs leveled compaction. When no compaction style is requested, `db_crashtest.py` picks universal for tiered runs, with a TODO to enable tiered+leveled once "Corruption: Unsafe to store Seq later than snapshot" is fixed. That error came from per-key placement in leveled compaction with snapshots (see T187570195), and D67683210 (meta#13256, Jan 2025) removed it by reworking output-level placement around a single sequence number threshold. The error string no longer exists in the code base and `PrecludeWithCompactStyleTest` covers the formerly failing limited-range compaction for both styles. Leveled compaction with `preclude_last_level_data_seconds` / `last_level_temperature` is a supported configuration, but it only gets unit-test coverage today.

Previous behavior: blackbox tiered runs always used universal compaction. Whitebox tiered runs used universal for the kill and normal check modes, plus the dedicated universal and FIFO modes.

New behavior: when `compaction_style` is not given, a tiered crash-test series picks leveled or universal (50/50) once in `gen_cmd_params()`, so the style stays fixed for every run in the series. Whitebox still adds its universal and FIFO check modes, and the existing `destroy_db_initially` handling covers style transitions. Non-tiered runs are unchanged (leveled).

Safety and limitations: test-only change. The remaining leveled gap noted in `tiered_compaction_test` (`FIXME: doesn't yet work with leveled compaction`) is about how aggressively data migrates back out of the last level after a preclude option change; it affects placement, not correctness, and the crash test does not verify placement.

Landing order: stacked on D129457762, the fix for the RegisterCompaction overlap assertion this change exposed (T296653904). Land D129457762 first.

Requested by: Jay Huh (jewoongh)

___

landed-with-radar-review

Differential Revision: D129451754
@meta-codesync

meta-codesync Bot commented Nov 9, 2026

Copy link
Copy Markdown

This pull request has been merged in ce9ce98.

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.

1 participant