Skip to content

Fix java relay host binding for CI#159

Open
typotter wants to merge 1 commit into
mainfrom
typo/fix-java-relay-host-binding
Open

Fix java relay host binding for CI#159
typotter wants to merge 1 commit into
mainfrom
typo/fix-java-relay-host-binding

Conversation

@typotter

Copy link
Copy Markdown
Collaborator

Summary

  • Java relay's build-and-run.sh defaulted SDK_RELAY_HOST to localhost, which on Linux binds Spark Java to 127.0.0.1 only
  • The test runner Docker container connects via host.docker.internal (resolves to 172.17.0.1), causing ECONNREFUSED
  • Fix: default to 0.0.0.0 so the relay accepts connections from all interfaces

Evidence

  • CI run #26622410924 shows test-java-sdk failing with connect ECONNREFUSED 172.17.0.1:4000
  • All other SDK relays pass because their frameworks bind more permissively
  • The relay itself starts fine (sdk.log shows Listening on localhost:4000) — it's just unreachable from Docker

Test plan

  • CI test-java-sdk passes on this branch

Spark Java's ipAddress("localhost") binds to 127.0.0.1 on Linux,
making the relay unreachable from the test runner Docker container
which connects via host.docker.internal (172.17.0.1).
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