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

Don't crash when {error, disconnected}. #11

Merged
merged 1 commit into from
Jan 21, 2014

Conversation

cmeiklejohn
Copy link
Contributor

Treat a disconnected connection as a notfound, rather than crashing,
which throws an error currently. This can be reproduced via the
replication2_pg:test_pg_proxy riak_test.

Treat a disconnected connection as a notfound, rather than crashing,
which throws an error currently.  This can be reproduced via the
replication2_pg:test_pg_proxy riak_test.
@ghost ghost assigned kellymclaughlin Jan 21, 2014
Other ->
Other
end;
{error, disconnected} ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not include a clause for other {error, Reason} tuples?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely. I was only widening it to the case I had an actual failure for via r_t in an effort to be conservative.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to adding more general error handling at some point. I'm fine doing it now or punting since this specific change addresses what is broken.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'd prefer to have a test for any further changes I'd make. This at least solves a known issue with pre11.

@kellymclaughlin
Copy link

The replication2_pg:test_pg_proxy passes for me locally with develop and bugfix/csm/disconnected, but this is a pretty clear improvement. +1 to merge.

cmeiklejohn added a commit that referenced this pull request Jan 21, 2014
Don't crash when {error, disconnected}.
@cmeiklejohn cmeiklejohn merged commit 6611a9a into develop Jan 21, 2014
@cmeiklejohn cmeiklejohn deleted the bugfix/csm/disconnected branch January 21, 2014 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants