-
Notifications
You must be signed in to change notification settings - Fork 438
RATIS-2233. make NOPROGRESS timeout configurable #1204
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
Conversation
szetszwo
left a comment
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.
@SzyWilliam , thanks a lot for working on this! Just two minor comments inlined.
| setInt(properties::setInt, STAGING_CATCHUP_GAP_KEY, stagingCatchupGap); | ||
| } | ||
|
|
||
| String BOOTSTRAP_TIMEOUT_KEY = PREFIX + ".bootstrap.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.
Since we already have staging.catchup.gap, how about calling it staging.timeout? It was unfortunate that we already used staging instead of bootstrap.
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.
No problem, let's use staging.timeout for consistency.
| |:----------------|:------------------------------------| | ||
| | **Description** | timeout of bootstrapping a new peer | | ||
| | **Type** | TimeDuration | | ||
| | **Default** | 3 times of timeoutMax | |
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.
Thanks for updating the doc! Let's use the full name raft.server.rpc.timeout.max.
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
|
@szetszwo Thanks for reviewing on this! Made changes on code, PTAL. |
szetszwo
left a comment
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 the change looks good.
See https://issues.apache.org/jira/browse/RATIS-2233