Siyao Meng created HDDS-15777:
---------------------------------

             Summary: Make admin CLI subcommands parse IPv6 RPC addresses 
correctly
                 Key: HDDS-15777
                 URL: https://issues.apache.org/jira/browse/HDDS-15777
             Project: Apache Ozone
          Issue Type: Task
            Reporter: Siyao Meng


Several admin/insight subcommands take address.split(":")[0] as the host, which 
returns an empty or wrong host for IPv6 literals:

- DecommissionOMSubcommand.java:137: 
InetAddress.getByName(rpcAddrStr.split(":")[0]).
- NSSummaryAdmin.java:62,69 and BaseInsightSubCommand.java:148,156: 
address.split(":", 2)[0] for host and [1] for port. These default to 
0.0.0.0:port today, so they only fail once an IPv6 bind address is configured.

Proposed: use an IPv6-aware host/port parser. Add tests with IPv6 RPC addresses.

Parent epic: HDDS-15763.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to