[
https://issues.apache.org/jira/browse/HDDS-15775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18103605#comment-18103605
]
Siyao Meng commented on HDDS-15775:
-----------------------------------
[~rich7420] Yeah, leaving {{BasicOzoneFileSystem}} alone is fine. A literal
cannot be embedded in the dotted {{o3fs}} authority. Java rejects
{{o3fs://bucket.volume.[::1]:9862/}} before filesystem initialization.
{{o3fs}} can still use IPv6 through a DNS name or OM service ID tho. Raw
literals should use the configured {{[ipv6]:port}} path covered by HDDS-15773.
> Support IPv6 literal authorities in OzoneFS URI parsing
> -------------------------------------------------------
>
> Key: HDDS-15775
> URL: https://issues.apache.org/jira/browse/HDDS-15775
> Project: Apache Ozone
> Issue Type: Task
> Reporter: Siyao Meng
> Assignee: Huang Kuan Hao
> Priority: Major
> Labels: pull-request-available
>
> ofs://[::1]:9862/path and o3fs://[::1]:9862/... fail because the authority is
> split on every colon.
> - BasicRootedOzoneFileSystem.java:164-175: authority.split(":") yields more
> than two parts for a bracketed IPv6 literal and throws
> IllegalArgumentException (URI_EXCEPTION_TEXT).
> - BasicOzoneFileSystem.java:167-176: same pattern.
> Proposed: parse the authority with an IPv6-aware helper (Guava HostAndPort /
> Hadoop NetUtils) that understands bracketed literals. Add filesystem tests
> that construct and resolve IPv6 authorities.
> 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]