yinqiwen / ardb

A redis protocol compatible nosql, it support multiple storage engines as backend like Google's LevelDB, Facebook's RocksDB, OpenLDAP's LMDB, PerconaFT, WiredTiger, ForestDB.
BSD 3-Clause "New" or "Revised" License
1.83k stars 278 forks source link

compactdb blocks other clients #468

Open hotpxl opened 5 years ago

hotpxl commented 5 years ago

I'm running ARDB with RocksDB as a backend. My database is around 100 GB. I usually have one window with watch redis-cli info to monitor the status, and if I do redis-cli compactdb and wait a while, the first window will freeze. All requests to ARDB will get blocked for a while until the compaction ends.

This doesn't happen right away when I start compaction, only after a short while. I haven't looked too deep into this. Is this a known issue?