Skip to content

[Regression] java.net.preferIPv4Stack set via systemPropertyVariables is ignored since 3.6.0 #3456

Description

@joseluisll

Affected version

3.6.0

Bug description

Surefire 3.6.0 initialises the fork's NIO/native networking layer before applying systemPropertyVariables, so any property read during that initialisation — like java.net.preferIPv4Stack — arrives too late. If a project uses systemPropertyVariables, the failure is silent and environment-dependent.

I encountered this bug upgrading the pluging in hadoop, that uses the variable preferIPv4Stack but the fork initializes the IPv6 Stack ignoring the variable.

Found working in HADOOP-19964 :https://issues.apache.org/jira/browse/HADOOP-19964

I use AI assistance to perform the coding work.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions