Skip to content

Java : Fail to parse IPv6 address and port from bootstrap address in GcsClientOptions #41966

@irshadcc

Description

@irshadcc

What happened + What you expected to happen

In GcsClientOptions, ray tries to parse the bootstrap address, if the bootstrap address is IPv6 the condition check will fail even though the address is valid.

String[] ipAndPort = rayConfig.getBootstrapAddress().split(":");
Preconditions.checkArgument(ipAndPort.length == 2, "Invalid bootstrap address.");

The expected behavior should not throw IllegalArgumentException.

Versions / Dependencies

Latest

Reproduction script

These issue can be easily reproduced by setting the bootstrap address to IPv6 when using Java worker.

Issue Severity

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issue, but not time-criticalbugSomething that is supposed to be working; but isn'tcoreIssues that should be addressed in Ray Corejavausability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions