Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh efile port if gone #189

Merged
merged 2 commits into from
Sep 12, 2014
Merged

Refresh efile port if gone #189

merged 2 commits into from
Sep 12, 2014

Conversation

engelsanchez
Copy link
Contributor

When the efile port cached in the process dictionary dies for any
reason, the code tries to load it one more time. If we can not open a
new port, something is probably seriously wrong, so we stop.

This fixes the issue with efile ports going away, then Bitcask basically
getting stuck on the list_dir operation needed when opening a cask, which
relies on this port to avoid serializing through the file_server.

The bitcask:efile_error_test/0 added in the first commit will fail, and pass in
the second commit.

This fixes #188

This test shows how if the cached efile port closes, our dumb ass can
not recover and Bitcask is unable to open casks. Yeah.
When the efile port cached in the process dictionary dies for any
reason, the code tries to load it one more time.  If we can not open a
new port, something is probably seriously wrong, so we stop.

This fixes the issue with efile ports going away, then Bitcask basically
getting stuck on the list_dir operation needed when opening a cask.

The bitcask:efile_error_test/0 will now pass with this change.
@slfritchie
Copy link
Contributor

@borshop +1

@slfritchie
Copy link
Contributor

@borshop +1 f947c2c

@slfritchie
Copy link
Contributor

+1

@slfritchie
Copy link
Contributor

+1 f947c2c

borshop added a commit that referenced this pull request Sep 12, 2014
Refresh efile port if gone

Reviewed-by: slfritchie
@slfritchie
Copy link
Contributor

@borshop merge

@borshop borshop merged commit f947c2c into 1.7 Sep 12, 2014
@seancribbs seancribbs deleted the bugfix/list-dir-port-refresh branch April 1, 2015 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants