You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "echonesis (via GitHub)" <gi...@apache.org> on 2026/07/18 05:18:48 UTC

[PR] HDDS-15772. Stop forcing java.net.preferIPv4Stack=true for Ozone daemons and tests [ozone]

echonesis opened a new pull request, #10801:
URL: https://github.com/apache/ozone/pull/10801

   ## What changes were proposed in this pull request?
   
   Ozone currently forces `java.net.preferIPv4Stack=true` for daemon processes and Maven test executions. 
   This prevents the JVM from using its default networking behavior and blocks IPv6-capable or dual-stack environments unnecessarily.
   - Removes the default `java.net.preferIPv4Stack=true` setting from Ozone shell bootstrap.
   - Removes the corresponding global Surefire system property.
   - Removes the legacy Linux `net.ipv6.bindv6only` check and the undocumented `OZONE_ALLOW_IPV6` developer override.
   - Updates `ozone-env.sh` to document that Ozone follows the JVM's default IP stack preference while retaining instructions for operators who need to force IPv4.
   - Adds Bats coverage verifying that shell bootstrap does not force IPv4 by default and preserves an explicitly configured IPv4 preference.
   
   Operators can continue to force IPv4 when required by setting:
   ```shell
   export OZONE_OPTS="-Djava.net.preferIPv4Stack=true"
   ```
   
   Generated-by: Codex (GPT-5)
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-15772
   
   ## How was this patch tested?
   
   GitHub Actions CI: https://github.com/echonesis/ozone/actions/runs/29590987895
   <img width="600" height="178" alt="ζˆͺεœ– 2026-07-18 δΈ‹εˆ1 18 02" src="https://github.com/user-attachments/assets/685bf808-d380-41ef-8406-0349723c317d" />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-15772. Stop forcing java.net.preferIPv4Stack=true [ozone]

Posted by "echonesis (via GitHub)" <gi...@apache.org>.
echonesis commented on PR #10801:
URL: https://github.com/apache/ozone/pull/10801#issuecomment-5018057059

   Thanks @adoroszlai for the review and merge.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-15772. Stop forcing java.net.preferIPv4Stack=true [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #10801:
URL: https://github.com/apache/ozone/pull/10801


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-15772. Stop forcing java.net.preferIPv4Stack=true [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #10801:
URL: https://github.com/apache/ozone/pull/10801#issuecomment-5012641297

   Thanks @echonesis for the patch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org