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

use ConnectTimeout for options message #1217

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Conversation

beltran
Copy link
Contributor

@beltran beltran commented Oct 17, 2018

Fixes #1216

@@ -658,7 +658,7 @@ func TestQueryTimeout(t *testing.T) {
if err != ErrTimeoutNoResponse {
t.Fatalf("expected to get %v for timeout got %v", ErrTimeoutNoResponse, err)
}
case <-time.After(10*time.Millisecond + db.cfg.Timeout):
case <-time.After(40*time.Millisecond + db.cfg.Timeout):
Copy link
Contributor

Choose a reason for hiding this comment

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

any specific reason for 40 over 10?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When running the stress I go a failure out of 10000 without that. I assume this was happening before as well. I don't think it will make a difference in the travis tests

Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, agree. Just was wondering what's happening that warrants the increase in the waiting there.

@@ -658,7 +658,7 @@ func TestQueryTimeout(t *testing.T) {
if err != ErrTimeoutNoResponse {
t.Fatalf("expected to get %v for timeout got %v", ErrTimeoutNoResponse, err)
}
case <-time.After(10*time.Millisecond + db.cfg.Timeout):
case <-time.After(40*time.Millisecond + db.cfg.Timeout):
Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, agree. Just was wondering what's happening that warrants the increase in the waiting there.

@Zariel Zariel merged commit f0078a2 into apache:master Oct 17, 2018
@beltran beltran deleted the timeout branch October 17, 2018 23:14
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