Skip to content

HDDS-15772. Stop forcing java.net.preferIPv4Stack=true for Ozone daemons and tests#10801

Open
echonesis wants to merge 1 commit into
apache:masterfrom
echonesis:HDDS-15772
Open

HDDS-15772. Stop forcing java.net.preferIPv4Stack=true for Ozone daemons and tests#10801
echonesis wants to merge 1 commit into
apache:masterfrom
echonesis:HDDS-15772

Conversation

@echonesis

Copy link
Copy Markdown
Contributor

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:

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
截圖 2026-07-18 下午1 18 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant