Skip to content

RATIS-2438: Update membership-change documentation#1379

Open
snehasishroy wants to merge 1 commit intoapache:masterfrom
snehasishroy:RATIS-2438
Open

RATIS-2438: Update membership-change documentation#1379
snehasishroy wants to merge 1 commit intoapache:masterfrom
snehasishroy:RATIS-2438

Conversation

@snehasishroy
Copy link
Contributor

What changes were proposed in this pull request?

Fix membership documentation

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2438

@snehasishroy snehasishroy changed the title Update membership-change documentation RATIS-2438: Update membership-change documentation Mar 16, 2026
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.

@snehasishroy , thanks a lot for catching the doc bug and fixing it! Please see the comments inlined.

```java
RaftServer N3 = RaftServer.newBuilder()
.setGroup(RaftGroup.emptygroup())
.setGroup(RaftGroup.valueOf(groupId, List.of()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use standard Java API Collections.emptyList() and keep the indentation.

        .setGroup(RaftGroup.valueOf(groupId, Collections.emptyList()))

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 but provide an empty list of peers.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use "the existing groupId and an empty list of peers."

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