rustbase / dustdata

A data concurrency control key-value storage engine to Rustbase

Home Page:https://rustbase-web.vercel.app/dustdata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug for special `key`

Milittle opened this issue · comments

As a titile, I notice if I delete key twice, every time key exist in storage engine.

图片

I put the print message in dustdata:

图片

But for other key: such as key1, it will be raise the Key does not exist. strange problem.

图片

Are you inserted key before? DustData flush all the data in disk when:

  • DustData struct is flush from memory;
  • Call flush function on DustData;
  • Memtable size or more than flush_threshold;

Yes, but other key can delete by delete interface, only key have some problem

Yes, but other key can delete by delete interface, only key have some problem

If key be deleted, the bloom filter do not udpate the filter directory meta files?

The bug is related with Dense Index, it's seems that DustData is not deleting keys flushed to disk.