-
Notifications
You must be signed in to change notification settings - Fork 559
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
[client-v2] Retries on failures #1768
Conversation
Quality Gate failedFailed conditions |
} | ||
|
||
if (!userConfig.containsKey("client_network_buffer_size")) { | ||
if (!configuration.containsKey("client_network_buffer_size")) { | ||
setClientNetworkBufferSize(8192); |
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.
lets add it as const
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.
done.
throw new ClientException("Failed to get response", e); | ||
} | ||
LOG.warn("Failed to get response. Retrying.", e); | ||
} catch ( NoHttpResponseException | ConnectionRequestTimeoutException | ConnectTimeoutException e) { |
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.
Is it a duplicated code? (i see in other inserts as well)
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.
yes. I left it as duplicate because handling it in dedicated method would not be much shorter. I will review this code later if it can be extracted to a single method.
Summary
Closes #1692
Checklist
Delete items not relevant to your PR: