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-2131: Surround with [] only if hostName is a IPv6 string #1125

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

mridulm
Copy link
Contributor

@mridulm mridulm commented Jul 25, 2024

What changes were proposed in this pull request?

Currently, if the address is IPv6, NetUtils.address2String always surrounds it with '[]'.
This should be done only when the input is an IP string, and not for hostnames (which have an IPv6 address)

What is the link to the Apache JIRA

RATIS-2131

How was this patch tested?

Manual testing

@mridulm mridulm marked this pull request as draft July 25, 2024 05:51
@mridulm mridulm marked this pull request as ready for review July 25, 2024 06:11
@mridulm
Copy link
Contributor Author

mridulm commented Jul 25, 2024

Verified with Apache Celeborn, which uses 3.1.0

@mridulm
Copy link
Contributor Author

mridulm commented Jul 25, 2024

+CC @waitinfuture, @RexXiong

@mridulm
Copy link
Contributor Author

mridulm commented Jul 25, 2024

+CC @szetszwo based on git blame.

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 fb4968f into apache:master Jul 25, 2024
12 checks passed
@mridulm mridulm deleted the fix-ipv6 branch July 25, 2024 13:05
@mridulm
Copy link
Contributor Author

mridulm commented Jul 25, 2024

Thanks @szetszwo !

mridulm pushed a commit to apache/celeborn that referenced this pull request Sep 26, 2024
### What changes were proposed in this pull request?

Bump Ratis version from 3.1.0 to 3.1.1 including:

- Remove `address2String` and use `setAddress(ratisAddr)` with the release of apache/ratis#1125.
- Support `raft.grpc.message.size.max` must be 1m larger than `raft.server.log.appender.buffer.byte-limit` for apache/ratis#1132.

### Why are the changes needed?

Bump Ratis version from 3.1.0 to 3.1.1. Ratis has released v3.1.1, of which release note refers to [3.1.1](https://ratis.apache.org/post/3.1.1.html). The 3.1.1 version is a minor release with multiple improvements and bugfixes including [[RATIS-2116] Fix the issue where RaftServerImpl.appendEntries may be blocked indefinitely](https://issues.apache.org/jira/browse/RATIS-2116), [[RATIS-2131] Configuring Ratis fails when hostname is used, and is an IPv6 host](https://issues.apache.org/jira/browse/RATIS-2131). See the [changes between 3.1.0 and 3.1.1](apache/ratis@ratis-3.1.0...ratis-3.1.1) releases.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI.

Closes #2759 from SteNicholas/CELEBORN-1525.

Authored-by: SteNicholas <[email protected]>
Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
HolyLow pushed a commit to HolyLow/celeborn that referenced this pull request Oct 14, 2024
### What changes were proposed in this pull request?

Bump Ratis version from 3.1.0 to 3.1.1 including:

- Remove `address2String` and use `setAddress(ratisAddr)` with the release of apache/ratis#1125.
- Support `raft.grpc.message.size.max` must be 1m larger than `raft.server.log.appender.buffer.byte-limit` for apache/ratis#1132.

### Why are the changes needed?

Bump Ratis version from 3.1.0 to 3.1.1. Ratis has released v3.1.1, of which release note refers to [3.1.1](https://ratis.apache.org/post/3.1.1.html). The 3.1.1 version is a minor release with multiple improvements and bugfixes including [[RATIS-2116] Fix the issue where RaftServerImpl.appendEntries may be blocked indefinitely](https://issues.apache.org/jira/browse/RATIS-2116), [[RATIS-2131] Configuring Ratis fails when hostname is used, and is an IPv6 host](https://issues.apache.org/jira/browse/RATIS-2131). See the [changes between 3.1.0 and 3.1.1](apache/ratis@ratis-3.1.0...ratis-3.1.1) releases.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI.

Closes apache#2759 from SteNicholas/CELEBORN-1525.

Authored-by: SteNicholas <[email protected]>
Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
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