RocksDB WriteBatch and WAL recovery duplication
RocksDB utilizes WriteBatch to ensure atomicity, ensuring that a group of operations is applied as a single unit. While this prevents partial updates, the system relies on the Write-Ahead Log (WAL) for durability and recovery after a crash. A design uncertainty exists regarding the interaction between the WAL and the memtable during recovery. Specifically, i