Segfault when opening bulk loaded file in read only mode
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 条评论