This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 721493116 RATIS-2438: Update membership-change documentation (#1379)
721493116 is described below
commit 7214931166164c8207947dfa916c2e499e4d7b0e
Author: Snehasish Roy <[email protected]>
AuthorDate: Fri Mar 20 23:37:10 2026 +0530
RATIS-2438: Update membership-change documentation (#1379)
Co-authored-by: Snehasish Roy <[email protected]>
---
ratis-docs/src/site/markdown/membership-change.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ratis-docs/src/site/markdown/membership-change.md
b/ratis-docs/src/site/markdown/membership-change.md
index 81ae5495c..3a4bc46b6 100644
--- a/ratis-docs/src/site/markdown/membership-change.md
+++ b/ratis-docs/src/site/markdown/membership-change.md
@@ -39,11 +39,11 @@ Be careful to keep both separate majorities online!
To add a new node (e.g., `N3`) to an existing group (e.g., `N0`, `N1`, `N2`),
follow these steps:
-1. Start the new peer `N3` with **EMPTY** group.
+1. Start the new peer `N3` with the existing groupId and provide an empty list
of peers.
```java
RaftServer N3 = RaftServer.newBuilder()
- .setGroup(RaftGroup.emptygroup())
+ .setGroup(RaftGroup.valueOf(groupId, Collections.emptyList()))
.setProperties(properties)
.setServerId(n3id)
.setStateMachine(userStateMachine)
@@ -52,8 +52,8 @@ To add a new node (e.g., `N3`) to an existing group (e.g.,
`N0`, `N1`, `N2`), fo
```
2. Invoke a `setConfiguration` method in the [AdminApi](
-../../../../ratis-client/src/main/java/org/apache/ratis/client/api/AdminApi.java#L44)
-with the new group as the parameter.
+../../../../ratis-client/src/main/java/org/apache/ratis/client/api/AdminApi.java#L44)
+ on the existing cluster with the new list of peers as the parameter.
It will wait for the new peer to catch up before returning the reply.
```java
reply = client.admin().setConfiguration(List.of(N0, N1, N2, N3))