update logic for `allKeys`
add test, case operation stay in queue