-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-22322 Use special pause for CallQueueTooBigException #195
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,34 +36,40 @@ public interface AsyncAdminBuilder { | |
| * Set timeout for a whole admin operation. Operation timeout and max attempt times(or max retry | ||
| * times) are both limitations for retrying, we will stop retrying when we reach any of the | ||
| * limitations. | ||
| * @param timeout | ||
| * @param unit | ||
| * @return this for invocation chaining | ||
| */ | ||
| AsyncAdminBuilder setOperationTimeout(long timeout, TimeUnit unit); | ||
|
|
||
| /** | ||
| * Set timeout for each rpc request. | ||
| * @param timeout | ||
| * @param unit | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
| * @return this for invocation chaining | ||
| */ | ||
| AsyncAdminBuilder setRpcTimeout(long timeout, TimeUnit unit); | ||
|
|
||
| /** | ||
| * Set the base pause time for retrying. We use an exponential policy to generate sleep time when | ||
| * retrying. | ||
| * @param timeout | ||
| * @param unit | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
| * @return this for invocation chaining | ||
| * @see #setRetryPauseForCQTBE(long, TimeUnit) | ||
| */ | ||
| AsyncAdminBuilder setRetryPause(long timeout, TimeUnit unit); | ||
|
|
||
| /** | ||
| * Set the base pause time for retrying when we hit {@code CallQueueTooBigException}. We use an | ||
| * exponential policy to generate sleep time when retrying. | ||
| * <p/> | ||
| * This value should be greater than the normal pause value which could be set with the above | ||
| * {@link #setRetryPause(long, TimeUnit)} method, as usually {@code CallQueueTooBigException} | ||
| * means the server is overloaded. We just use the normal pause value for | ||
| * {@code CallQueueTooBigException} if here you specify a smaller value. | ||
| * @see #setRetryPause(long, TimeUnit) | ||
| */ | ||
| AsyncAdminBuilder setRetryPauseForCQTBE(long pause, TimeUnit unit); | ||
|
|
||
| /** | ||
| * Set the max retry times for an admin operation. Usually it is the max attempt times minus 1. | ||
| * Operation timeout and max attempt times(or max retry times) are both limitations for retrying, | ||
| * we will stop retrying when we reach any of the limitations. | ||
| * @param maxRetries | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
| * @return this for invocation chaining | ||
| */ | ||
| default AsyncAdminBuilder setMaxRetries(int maxRetries) { | ||
|
|
@@ -74,14 +80,12 @@ default AsyncAdminBuilder setMaxRetries(int maxRetries) { | |
| * Set the max attempt times for an admin operation. Usually it is the max retry times plus 1. | ||
| * Operation timeout and max attempt times(or max retry times) are both limitations for retrying, | ||
| * we will stop retrying when we reach any of the limitations. | ||
| * @param maxAttempts | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
| * @return this for invocation chaining | ||
| */ | ||
| AsyncAdminBuilder setMaxAttempts(int maxAttempts); | ||
|
|
||
| /** | ||
| * Set the number of retries that are allowed before we start to log. | ||
| * @param startLogErrorsCnt | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
| * @return this for invocation chaining | ||
| */ | ||
| AsyncAdminBuilder setStartLogErrorsCnt(int startLogErrorsCnt); | ||
|
|
||
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.
Maybe better to add some javadoc to parameters here instead of removing? I mean after all we are changing this part, let's improve it.
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.
We do not have javadoc for these parameters in both
AsyncTableBuilderandTableBuilder, and I think the parameter name is good enough to tell users the meaning?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 will generate checkstyle error by default although not a big deal.