HDDS-16139. Define and enforce OFS and O3FS IPv6 authority contracts - #11108
Open
echonesis wants to merge 1 commit into
Open
HDDS-16139. Define and enforce OFS and O3FS IPv6 authority contracts#11108echonesis wants to merge 1 commit into
echonesis wants to merge 1 commit into
Conversation
echonesis
marked this pull request as ready for review
August 25, 2026 18:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR defines and enforces the supported IPv6 authority forms for OFS and O3FS following the URI parser changes in HDDS-15775.
ofs://[2001:db8::10]:9862/.bucket.volume, DNS names, IPv4 addresses, and OM service IDs.o3fs://bucket.volume/when the OM endpoint is supplied through configuration, including a configured bracketed IPv6 address.A dotted O3FS authority cannot contain a bracketed IPv6 literal such as
bucket.volume.[2001:db8::10], becausejava.net.URIrejects that form before O3FS initialization. Therefore, O3FS requires a DNS name or OM service ID when an IPv6 endpoint must be represented in the dotted authority.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16139
How was this patch tested?
Local Test
mvn -pl :ozone-filesystem-common -am test \ -Dtest=TestBasicOzoneFileSystems,TestOmUtils,TestOMFailoverProxyProvider \ -Dsurefire.failIfNoSpecifiedTests=false \ -DskipShade -DskipRecon -DskipDocsGitHub Actions CI: https://github.com/echonesis/ozone/actions/runs/32799667939
Generated-by: Codex (GPT-5)