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

Add connect-timeout for Cassandra #1647

Merged
merged 2 commits into from
Jul 3, 2019
Merged

Add connect-timeout for Cassandra #1647

merged 2 commits into from
Jul 3, 2019

Conversation

sagaranand015
Copy link
Contributor

Signed-off-by: Sagar Anand sagar.anand015@gmail.com

Which problem is this PR solving?

Short description of the changes

  • Added connect-timeout as a flag in cassandra storage config which is then used by gocql for connecting to the Cassandra Servers

Signed-off-by: Sagar Anand <sagar.anand015@gmail.com>
@codecov
Copy link

codecov bot commented Jul 1, 2019

Codecov Report

Merging #1647 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1647      +/-   ##
==========================================
+ Coverage   98.73%   98.73%   +<.01%     
==========================================
  Files         193      193              
  Lines        9214     9219       +5     
==========================================
+ Hits         9097     9102       +5     
  Misses         90       90              
  Partials       27       27
Impacted Files Coverage Δ
plugin/storage/cassandra/options.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c78819...0b31c89. Read the comment docs.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@yurishkuro yurishkuro changed the title Added connect-timeout changes for cassandra based storage connection Add connect-timeout for Cassandra Jul 3, 2019
@@ -32,6 +32,7 @@ type Configuration struct {
LocalDC string `yaml:"local_dc"`
ConnectionsPerHost int `validate:"min=1" yaml:"connections_per_host"`
Timeout time.Duration `validate:"min=500"`
ConnectTimeout time.Duration `validate:"min=600"`
Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't have validate tag, since it's a new optional param, but should have yaml:"connect_timeout"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair point, this is actually optional. Pushing Changes

Signed-off-by: Sagar Anand <sagar.anand015@gmail.com>
@yurishkuro yurishkuro merged commit ce31531 into jaegertracing:master Jul 3, 2019
@yurishkuro
Copy link
Member

Thank you for contributing!

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.

gocql throwing 'unable to connect to initial hosts: tls: DialWithDialer timed out'
2 participants