rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

IngestExternalFile put file on bottom level but on db_paths[0]

Open rockeet opened this issue 2 years ago • 2 comments

Expected behavior

IngestExternalFile should put file on db_paths according to level.

Actual behavior

IngestExternalFile put file on bottom level but on db_paths[0].

Steps to reproduce the behavior

  1. Set Options with level style compaction
  2. Set Options with multiple db_paths
  3. Open db with defined Options
  4. IngestExternalFile

rockeet avatar Jun 30 '22 12:06 rockeet

Is there any progress?

rockeet avatar Jul 13 '22 06:07 rockeet

IngestExternalFile func link/copy the sst file to db_paths[0] in preparing stage and assign the level to sst file in run stage。 This is why put file on bottom level but on db_paths[0]. In order to fix it, we need to get the correct level of sst file before link/copy

lhsoft avatar Jul 19 '22 08:07 lhsoft

Is there any progress?

rockeet avatar Nov 16 '22 10:11 rockeet