rocksdb/table
anand76 d6abf820d7 Fix multiscan crash when fill_cache=false (#13889)
Summary:
When fill_cache is ReadOptions is false, multi scan Prepare crashes with the following assertion failure. In this case, CreateAndPibBlockInCache needs to directly create a block with full ownership.

https://github.com/facebook/rocksdb/issues/9  0x00007f2fc003bc93 in __GI___assert_fail (assertion=0x7f2fc2147361 "pinned_data_blocks_guard[block_idx].GetValue()", file=0x7f2fc2146e08 "table/block_based/block_based_table_iterator.cc", line=1178, function=0x7f2fc2147262 "virtual void rocksdb::BlockBasedTableIterator::Prepare(const rocksdb::MultiScanArgs *)") at assert.c:101
101 in assert.c
https://github.com/facebook/rocksdb/issues/10 0x00007f2fc1d73088 in rocksdb::BlockBasedTableIterator::Prepare(rocksdb::MultiScanArgs const*) () from /data/users/anand76/rocksdb_anand76/librocksdb.so.10.6

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

Test Plan: Parameterize the DBMultiScanIteratorTest tests with fill_cache

Reviewed By: cbi42

Differential Revision: D80552069

Pulled By: anand1976

fbshipit-source-id: 1a0b64af1e14c63d826add1f994a832ebff12757
2025-08-21 16:47:37 -07:00
..
adaptive Standardize on clang-format version 18 (#13233) 2024-12-19 10:58:40 -08:00
block_based Fix multiscan crash when fill_cache=false (#13889) 2025-08-21 16:47:37 -07:00
cuckoo Standardize on clang-format version 18 (#13233) 2024-12-19 10:58:40 -08:00
plain Verify compaction output record count (#13455) 2025-03-18 18:40:33 -07:00
block_fetcher.cc propagate request_id from app -> Rocks -> FS (#13616) 2025-05-16 21:25:50 -07:00
block_fetcher.h Experimental, preliminary support for custom CompressionManager (#13626) 2025-05-21 10:09:46 -07:00
block_fetcher_test.cc Big refactor for preliminary custom compression API (#13540) 2025-05-15 17:14:23 -07:00
cleanable_test.cc Eliminate unnecessary (slow) block cache Ref()ing in MultiGet (#9899) 2022-04-26 21:59:24 -07:00
compaction_merging_iterator.cc Track the total number of compaction sorted runs from inside CompactionMergingIterator (#13325) 2025-02-06 13:25:51 -08:00
compaction_merging_iterator.h Track the total number of compaction sorted runs from inside CompactionMergingIterator (#13325) 2025-02-06 13:25:51 -08:00
external_table.cc User defined index builder (#13726) 2025-07-08 15:10:10 -07:00
format.cc Support GetFileSize API in FSRandomAccessFile (#13676) 2025-07-09 10:40:28 -07:00
format.h Support Prepare() in BlockBasedTableIterator For MultiScan (#13778) 2025-07-17 10:00:21 -07:00
get_context.cc Fix kBlockCacheTier read when merge-chain base value is in a blob file (#12462) 2024-03-21 12:38:53 -07:00
get_context.h Fix kBlockCacheTier read when merge-chain base value is in a blob file (#12462) 2024-03-21 12:38:53 -07:00
internal_iterator.h Multi scan API (#13473) 2025-04-02 16:07:56 -07:00
iter_heap.h Format files under table/ by clang-format (#10852) 2022-10-25 11:50:38 -07:00
iterator.cc Fix a bug for surfacing write unix time (#13057) 2024-10-08 11:31:51 -07:00
iterator_wrapper.h Multi scan API (#13473) 2025-04-02 16:07:56 -07:00
merger_test.cc internal_repo_rocksdb (435146444452818992) (#12115) 2023-12-01 11:15:17 -08:00
merging_iterator.cc Multi scan API (#13473) 2025-04-02 16:07:56 -07:00
merging_iterator.h Fix possible double-free on TruncatedRangeDelIterator (#12805) 2024-06-24 11:51:16 -07:00
meta_blocks.cc propagate request_id from app -> Rocks -> FS (#13616) 2025-05-16 21:25:50 -07:00
meta_blocks.h Fix external table ingestion workflow (#13608) 2025-05-16 14:41:51 -07:00
mock_table.cc Record newest_key_time as a table property (#13083) 2024-11-01 10:08:35 -07:00
mock_table.h Record newest_key_time as a table property (#13083) 2024-11-01 10:08:35 -07:00
multiget_context.h Delete max_write_buffer_number_to_maintain (#13491) 2025-04-07 21:44:36 -07:00
persistent_cache_helper.cc Remove extra semi colon from internal_repo_rocksdb/repo/db/table_cache_sync_and_async.h 2024-03-04 06:34:44 -08:00
persistent_cache_helper.h Change internal headers with duplicate names (#11408) 2023-05-17 11:27:09 -07:00
persistent_cache_options.h Change internal headers with duplicate names (#11408) 2023-05-17 11:27:09 -07:00
sst_file_dumper.cc Support recompress-with-CompressionManager in sst_dump (#13783) 2025-07-21 08:37:50 -07:00
sst_file_dumper.h Support recompress-with-CompressionManager in sst_dump (#13783) 2025-07-21 08:37:50 -07:00
sst_file_reader.cc Preliminary support for custom compression algorithms (#13659) 2025-06-16 14:19:03 -07:00
sst_file_reader_test.cc Bugfix: Ensure statuses are initialized with OK() in SSTFileReader::MultiGet (#13411) 2025-02-19 19:38:53 -08:00
sst_file_writer.cc Fix DeleteFile error handling in SstFileWriter::Finish (#13776) 2025-07-14 18:34:56 -07:00
sst_file_writer_collectors.h Add CompactForTieringCollector to support automatically trigger compaction for tiering use case (#12760) 2024-06-18 10:51:29 -07:00
table_builder.h Preliminary support for custom compression algorithms (#13659) 2025-06-16 14:19:03 -07:00
table_factory.cc Remove FactoryFunc from LoadXXXObject (#11203) 2023-02-17 12:54:07 -08:00
table_iterator.h Add support in SstFileReader to get a raw table iterator (#12385) 2024-04-02 21:23:06 -07:00
table_properties.cc Record newest_key_time as a table property (#13083) 2024-11-01 10:08:35 -07:00
table_properties_internal.h Improve / clean up meta block code & integrity (#9163) 2021-11-18 11:43:44 -08:00
table_reader.h Deshim coro in fbcode/internal_repo_rocksdb 2024-09-14 09:48:21 -07:00
table_reader_bench.cc Preliminary support for custom compression algorithms (#13659) 2025-06-16 14:19:03 -07:00
table_test.cc Fix compilation failure in 1369c7b169abf92e9750df0bb5471038d5fb7a15 2025-08-14 15:50:40 -07:00
two_level_iterator.cc internal_repo_rocksdb (435146444452818992) (#12115) 2023-12-01 11:15:17 -08:00
two_level_iterator.h Remove unnecessary, confusing 'extern' (#12300) 2024-01-29 10:38:08 -08:00
unique_id.cc internal_repo_rocksdb (435146444452818992) (#12115) 2023-12-01 11:15:17 -08:00
unique_id_impl.h Derive cache keys from SST unique IDs (#10394) 2022-08-12 13:49:49 -07:00