Repository navigation
Conversation
|
@jaykorean has exported this pull request. If you are a Meta employee, you can view the originating Diff in D129451754. |
✅ clang-tidy: No findings on changed linesCompleted in 0.0s. |
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
jaykorean
force-pushed
the
export-D129451754
branch
from
November 9, 2026 20:58
bb8774f to
b862d0e
Compare
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
jaykorean
force-pushed
the
export-D129451754
branch
from
November 9, 2026 22:32
b862d0e to
6c78d31
Compare
|
This pull request has been merged in ce9ce98. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Why: the tiered storage crash test (
--test_tiered_storage) never runs leveled compaction. When no compaction style is requested,db_crashtest.pypicks 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 andPrecludeWithCompactStyleTestcovers the formerly failing limited-range compaction for both styles. Leveled compaction withpreclude_last_level_data_seconds/last_level_temperatureis 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_styleis not given, a tiered crash-test series picks leveled or universal (50/50) once ingen_cmd_params(), so the style stays fixed for every run in the series. Whitebox still adds its universal and FIFO check modes, and the existingdestroy_db_initiallyhandling 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