-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[improve] [pip] PIP-375 Expose the Admin client configs: readTimeout, requestTimeout, and connectionTimeout #23222
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
base: master
Are you sure you want to change the base?
Conversation
…Timeout, connectionTimeout
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.
LGTM!
These configurations is very helpful to me.
pip/pip-375.md
Outdated
**broker.conf** | ||
```properties | ||
brokerAdminReadTimeoutInSeconds=120 | ||
brokerAdminRequestTimeoutInSeconds=120 | ||
brokerAdminConnectionTimeoutInSeconds=30 | ||
``` | ||
|
||
### CLI | ||
|
||
**client.conf** | ||
```properties | ||
adminReadTimeoutInSeconds=300 | ||
adminRequestTimeoutInSeconds=300 | ||
adminConnectionTimeoutInSeconds=30 | ||
``` |
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.
Are these values intended to be good sample values?
In other sources, I think that read timeout is typically set to a rather short timeout.
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.
Restored to the value the same as the current default configuration.
pip/pip-375.md
Outdated
- `readTimeout` | ||
- `requestTimeout` | ||
- `connectionTimeout` |
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.
Please add a short definition of these configuration parameters.
One reason is that there has been misconceptions about readTimeout and requestTimeout as described in #23128.
There's also a possibility for confusion about "connection timeout". One has to think whether it means "connect timeout" or "connection idle timeout", or something else. Based on the javadoc it means a "connect timeout".
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.
+1
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.
Added description
|
||
# Motivation | ||
|
||
We'd better to expose the following configs to users: |
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.
Why is it better?
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.
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.
It would be good to update this information in the PIP document.
# The value is the timeout to build a connection to the server. Value 0 represents infinity. Negative values are not allowed. | ||
connectionTimeout | ||
|
||
# The value is the timeout to read a response. If the server doesn't respond within the defined timeframe, ProcessingException is thrown with TimeoutException as a cause. |
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 possible that the server responds, but the client just doesn't know about this? 🤔
What if the server responds, but the response isn't fully received by the client?
Is "response timeout" different from "read timeout"?
Could we improve the definition to reduce the confusion?
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.
It's better to have clear descriptions for the settings. You could use GitHub Copilot to revisit the comment based on the feedback to assist in coming up with an improvement.
Motivation
Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x