basho/bitcask — pull request #190 by engelsanchez (2014-09-05 22:29:51+00:00)
Title: Fix scan error deadlock

If a file scan error happens during a Bitcask open operation, remember
to release the newly created keydir. Before, that keydir was left
behind. Subsequent open operations would see it, see that it was not
ready yet and try to wait for it to load. But this would never happen,
alas.

If a scan error happens on opening a new directory, please release the
newly created keydir so other open operations have a chance to succeed.

This fixes issue https://github.com/basho/bitcask/issues/187

The first commit contains a new failing tests to demonstrate, and the
second commit contains the fix.