Uh oh!
There was an error while loading. Please reload this page.
HBASE-22322 Use special pause for CallQueueTooBigException - #195
Conversation
Apache-HBase
commented
Apr 28, 2019
🎊 +1 overall
This message was automatically generated. |
carp84
commented
Apr 29, 2019
Agreed. Actually the original config name proposed in HBASE-17114 is Will be back and review the PR soon. |
| * times) are both limitations for retrying, we will stop retrying when we reach any of the | ||
| * limitations. | ||
| * @param timeout | ||
| * @param unit |
There was a problem hiding this comment.
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.
We do not have javadoc for these parameters in both AsyncTableBuilder and TableBuilder, and I think the parameter name is good enough to tell users the meaning?
There was a problem hiding this comment.
It will generate checkstyle error by default although not a big deal.
| /** | ||
| * Set timeout for each rpc request. | ||
| * @param timeout | ||
| * @param unit |
| * Set the base pause time for retrying. We use an exponential policy to generate sleep time when | ||
| * retrying. | ||
| * @param timeout | ||
| * @param 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 |
| * 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 |
| /** | ||
| * Set the number of retries that are allowed before we start to log. | ||
| * @param startLogErrorsCnt |
carp84
left a comment
There was a problem hiding this comment.
Overall LGTM, just some minor comments that don't block the commit. And please make it compatible for old configuration if plan to change the config name.
Apache-HBase
commented
Apr 29, 2019
💔 -1 overall
This message was automatically generated. |
Apache9
commented
Apr 29, 2019
OK, can do this in another issue... |
Still have some problems on implementing UTs, will update the patch soon. And maybe we could change the config name? I think a more general reason to use a larger pause is that the region server is overloaded, CallQueueTooBigException is only one possible result of a overloaded region server. So maybe we could change the config and also the new methods in TableBuilder and AdminBuilder to something like pauseWhenOverloaded? What do you think @carp84 . Thanks.