KeyDB icon indicating copy to clipboard operation
KeyDB copied to clipboard

[BUG] KeyDB never releases space from the Flash Storage

Open epaolillo opened this issue 4 months ago • 7 comments

Describe the bug

KeyDB never releases space from the Flash storage. Despite manually deleting keys, the amount of used storage does not significantly decrease.

To reproduce

  1. Run KeyDB with Flash storage enabled.
  2. Insert a large number of keys into the database.
  3. Manually delete a portion of the keys.
  4. Check the storage usage; the space occupied on the disk does not decrease as expected.

Expected behavior

After deleting keys, the amount of storage space used by KeyDB should decrease significantly, reflecting the removal of the data.

Additional information

The storage engine is configured to use Flash. I’ve ensured that the keys were deleted correctly and are no longer accessible. However, the storage space used does not change, even after multiple manual deletions. Version of KeyDB being used: 6.3.4 OS: Ubuntu 20.04

epaolillo avatar Oct 02 '24 21:10 epaolillo