Andrew Chang
3ef8b1b743
Guard auto-readahead against exhausted index iter (#14631)
Summary:
Pull Request resolved: https://github.com/facebook/rocksdb/pull/14631
Observed crash from ZippyDB iterate scans:
```
onFatalError: unexpected error : Invariant SignalFatal:
fbcode/zippydb/server/Main.cpp:handleSigToFatalCommon:281:FATAL false
failed: Signal 11 (SIGSEGV) at address 0x0 ... method: MultiIterate ...
RocksDB Activity: iterate
```
Key stack frames:
rocksdb::BlockBasedTableIterator::IsNextBlockOutOfReadaheadBound()
fbcode/rocksdb/src/table/block_based/block_based_table_iterator.h:471
rocksdb::BlockBasedTableIterator::BlockCacheLookupForReadAheadSize()
fbcode/rocksdb/src/table/block_based/block_based_table_iterator.cc:878
rocksdb::FinalizeAsyncRead()
rocksdb::FilePrefetchBuffer::PollIfNeeded()
rocksdb::BlockFetcher::ReadBlockContents()
rocksdb::BlockBasedTableIterator::InitDataBlock()
rocksdb::DBIter::Next()
Reviewed By: xingbowang
Differential Revision: D101217429
fbshipit-source-id: e7657909a0f07526d070b214cb783f581b8e98ca
2026-04-17 12:36:29 -07:00
..
2026-02-11 14:43:41 -08:00
2026-04-17 12:36:29 -07:00
2024-12-19 10:58:40 -08:00
2025-10-17 11:12:35 -07:00
2026-02-11 14:43:41 -08:00
2026-03-19 14:54:24 -07:00
2025-05-21 10:09:46 -07:00
2026-02-13 11:56:22 -08:00
2025-12-04 12:28:01 -08:00
2025-02-06 13:25:51 -08:00
2026-03-24 11:10:42 -07:00
2026-04-03 16:48:09 -07:00
2026-02-11 14:43:41 -08:00
2026-04-08 18:58:40 -07:00
2026-04-08 18:58:40 -07:00
2025-08-08 10:33:36 -07:00
2022-10-25 11:50:38 -07:00
2025-08-08 10:33:36 -07:00
2024-10-08 11:31:51 -07:00
2023-12-01 11:15:17 -08:00
2026-03-09 16:42:41 -07:00
2024-06-24 11:51:16 -07:00
2026-04-10 17:04:47 -07:00
2026-02-17 23:31:30 -08:00
2024-11-01 10:08:35 -07:00
2024-11-01 10:08:35 -07:00
2025-09-08 13:11:28 -07:00
2024-03-04 06:34:44 -08:00
2023-05-17 11:27:09 -07:00
2023-05-17 11:27:09 -07:00
2026-02-17 23:31:30 -08:00
2026-02-17 23:31:30 -08:00
2026-03-25 15:11:15 -07:00
2026-03-25 15:11:15 -07:00
2024-06-18 10:51:29 -07:00
2026-04-10 17:04:47 -07:00
2026-02-19 22:10:47 -08:00
2023-02-17 12:54:07 -08:00
2024-04-02 21:23:06 -07:00
2021-11-18 11:43:44 -08:00
2026-04-08 21:05:03 -07:00
2026-02-17 23:33:39 -08:00
2025-12-04 11:52:58 -08:00
2026-04-08 21:05:03 -07:00
2023-12-01 11:15:17 -08:00
2024-01-29 10:38:08 -08:00
2026-02-13 11:56:22 -08:00
2026-02-13 11:56:22 -08:00