Skip to content
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

RATIS-2233. make NOPROGRESS timeout configurable #1204

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

SzyWilliam
Copy link
Member

Copy link
Contributor

@szetszwo szetszwo left a 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.

@@ -116,6 +116,21 @@ static void setStagingCatchupGap(RaftProperties properties, int stagingCatchupGa
setInt(properties::setInt, STAGING_CATCHUP_GAP_KEY, stagingCatchupGap);
}

String BOOTSTRAP_TIMEOUT_KEY = PREFIX + ".bootstrap.timeout";
Copy link
Contributor

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.

Copy link
Member Author

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 |
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@SzyWilliam
Copy link
Member Author

@szetszwo Thanks for reviewing on this! Made changes on code, PTAL.

Copy link
Contributor

@szetszwo szetszwo left a 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.

@szetszwo szetszwo merged commit 5e6cc9d into apache:master Jan 3, 2025
13 checks passed
SzyWilliam added a commit to SzyWilliam/ratis that referenced this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants