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

Re-try temporary net errors, close connection if unsuccessful #52

Merged
merged 5 commits into from
Feb 19, 2016

Conversation

lukebakken
Copy link
Contributor

Fixes #51 (CLIENTS-766)

@lukebakken lukebakken self-assigned this Feb 13, 2016
@lukebakken lukebakken added this to the riak-go-client-1.5.2 milestone Feb 13, 2016
@lukebakken
Copy link
Contributor Author

@pguelpa - if it's convenient, could you try the fix on this branch in your environment?

@lukebakken lukebakken force-pushed the fixes/lrb/gh-51-connection-timeout-msg-code-error branch 2 times, most recently from 3505cf3 to 6fc3fbb Compare February 13, 2016 17:48
logErr("[Node]", cmErr)
}
if !isTemporaryNetError(err) {
n.doHealthCheck()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only health check when it's not a temporary network error.

@lukebakken lukebakken force-pushed the fixes/lrb/gh-51-connection-timeout-msg-code-error branch from 6fc3fbb to d4d856c Compare February 13, 2016 18:00
No need to sleep, just set the deadline itself

Increase heisen-test timeout
@lukebakken lukebakken force-pushed the fixes/lrb/gh-51-connection-timeout-msg-code-error branch from d4d856c to 4473637 Compare February 13, 2016 18:03
… msg code does happen when connections re-used with old code
@lukebakken
Copy link
Contributor Author

Reminder: be sure to add an RPB test to command_rpb_test.go for GetServerInfoCommand

@christophermancini
Copy link
Contributor

👍 tests pass, code looks good.

@lukebakken lukebakken force-pushed the fixes/lrb/gh-51-connection-timeout-msg-code-error branch from 6d88633 to f76d688 Compare February 19, 2016 19:49
lukebakken added a commit that referenced this pull request Feb 19, 2016
…msg-code-error

Re-try temporary net errors, close connection if unsuccessful
@lukebakken lukebakken merged commit 3eba1c3 into master Feb 19, 2016
@lukebakken lukebakken deleted the fixes/lrb/gh-51-connection-timeout-msg-code-error branch February 19, 2016 20:52
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.

2 participants