rocksdb/unreleased_history/bug_fixes
Hui Xiao abd6751aba Fix wrong padded bytes being used to generate file checksum (#12598)
Summary:
**Context/Summary:**

https://github.com/facebook/rocksdb/pull/12542 introduced a bug where wrong padded bytes used to generate file checksum if flush happens during padding. This PR fixed it along with an existing same bug for `perform_data_verification_=true`.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/12598

Test Plan:
- New UT that failed before this fix (`db->VerifyFileChecksums: ...Corruption:  ...file checksum mismatch`) and passes after
- Benchmark
```
TEST_TMPDIR=/dev/shm  ./db_bench --benchmarks=fillseq[-X300] --num=100000 --block_align=1 --compression_type=none
```
Pre-PR:
fillseq [AVG    300 runs] : 421334 (± 4126) ops/sec;   46.6 (± 0.5) MB/sec
Post-PR: (no regression observed but a slight improvement)
fillseq [AVG    300 runs] : 425768 (± 4309) ops/sec;   47.1 (± 0.5) MB/sec

Reviewed By: ajkr, anand1976

Differential Revision: D56725688

Pulled By: hx235

fbshipit-source-id: c1a700a95def8c65c0a21e44f8c1966164925ad5
2024-04-30 15:38:53 -07:00
..
.gitkeep Better management of unreleased HISTORY (#11481) 2023-05-30 16:42:49 -07:00
block_align_checksum_mismatch.md Fix file checksum mismatch due to padded bytes when block_align=true (#12542) 2024-04-22 14:07:34 -07:00
consistent_view_for_new_iterators_api.md MultiCFSnapshot for NewIterators() API (#12573) 2024-04-24 15:28:55 -07:00
del_range_and_memtable_insert_with_hint_prefix_extractor.md fix DeleteRange+memtable_insert_with_hint_prefix_extractor interaction (#12558) 2024-04-22 20:13:58 -07:00
disable_manual_compaction_hang.md Fix DisableManualCompaction() hang (#12578) 2024-04-24 12:40:36 -07:00
max_successive_merges_regression.md Fix max_successive_merges counting CPU overhead regression (#12546) 2024-04-17 12:11:24 -07:00
multiget_partial_error_blob_dereference.md Fixed MultiGet() error handling to not skip blob dereference (#12597) 2024-04-29 14:18:42 -07:00
pad_bug.md Fix wrong padded bytes being used to generate file checksum (#12598) 2024-04-30 15:38:53 -07:00
pinnable_wide_columns_move.md Fix the move semantics of PinnableWideColumns (#12557) 2024-04-17 18:56:23 -07:00
recycle_logs_toggle_bug.md Fix corruption bug when recycle_log_file_num changed from 0 (#12591) 2024-04-29 12:25:00 -07:00