basho/bitcask

Potential Process Leak [JIRA: RIAK-2227]

ian-mi opened this issue · 2 comments

There appears to be a potential process leak when a bitcask_file process is unable to open a file. When this occurs, the process will return an error to the caller of file_open, but will not shut itself down. bitcask_file:file_open will simply return this error to the caller without stopping the bitcask_file process. A simple solution would be to change the error reply to an exit.

I faced this issue at ZD#12688, but I didn't identify what makes bitcask_file:file_open/2 fail.

llelf commented

should this be closed? a35d6d6