-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/retry logic in es2plus client #964
base: develop
Are you sure you want to change the base?
Conversation
What is the timeout for requests set to in the HttpClient? |
Timeout is set to ten seconds: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The connection timeout issue can be fixed with just a one-line change in the config.
The current value of 10s is set to timeout
.
connectionTimeout
is not set at all and hence defaults to 500ms
.
Please try that in a separate PR before this elaborate solution.
Reference:
https://www.dropwizard.io/en/stable/manual/configuration.html#httpclient
Have submitted a new one-line PR with the change suggested by @vihangpatil. If that does the trick, I will rework this PR into a pure refactoring PR (adding documentation etc.), and remove the retry logic. |
Feature to fix bug/misfeature: Some times the ES2+ responds slowly, and this patch gives the client a little more time to get it right before signalling a failure.
Also some refactoring/additional documentation (based on hints from Intellij which checks for such things before committing to VCS).