ITADN

Segfault when opening bulk loaded file in read only mode

#14650OpenSashiGit1 创建于 2026-04-21
S
SashiGit1commented
Hi, Rocksdb version: 11.2.0 I have bulk loaded file, all files at L6 with non-overlapping ranges. I am seeing seg faults in rocksdb in GetDataDir(ColumnFamilyData*, unsigned long) call. When I open files in read only mode the path_id is 0. Directories aren't initialized in read only mode. However, BackgroundCallCompation still calls GetDataDir() even when I open in read only mode which causes the seg fault. Tried different options to disable the compaction like setting max_background_jobs to 0, max_background_compactions to 0 and max_background_flushes to 0 etc. but I was still seeing the seg faults. Only option that worked for me was to do OpenAsSecondary. P.S: Claude thinks SetPeriodicTaskScheduler shouldn't be called from CmpactedDBImpl::Open
0 条评论