Closed jonmeredith closed 8 years ago
create jira issue
PR ready for review.
Found by JohnC onsite at customer.
_[posted via JIRA by Jon Meredith]_
:+1: 52bce9c
@borshop merge
Once merged, we'll have to re-tag bitcask and bump appropriate rebar.config files.
_[posted via JIRA by Douglas Rohrer]_
Completed and merged.
_[posted via JIRA by Douglas Rohrer]_
Merged to patch-1.7.2 and 1.7 branches. patch-1.7.2 tagged 1.7.2p1
_[posted via JIRA by Douglas Rohrer]_
The
has_valid_hintfile
function opened the file, then recursively calledhintfile_validate_loop
until the end of file or error. Either way it does not close the file.has_valid_hintfile
is called as part of opening a bitcask viafold_keys(..., recovery, ...)
viabitcask:scan_keyfiles/5
so the descriptors are leaked each time the bitcask is opened.Fixed by adding a try/after block around the
hintfile_validate_loop/3
Passed
./rebar eunit
locally