Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-5308] Correct/cleanup DockerOnMac code in DockerJobBundleFactory #6335

Merged
merged 1 commit into from Sep 5, 2018

Conversation

mxm
Copy link
Contributor

@mxm mxm commented Sep 5, 2018

This fixes a bug which led to bind exceptions due to always using a fixed port
range on MacOS. We only have to use a fixed port range for the SDK harness
processes when we're already running in a container, e.g. local testing with the
Job Server running in Docker.

A fixed port range is necessary due to missing host networking on MacOS which
otherwise doesn't allow the SDK harness containers to connect to the container
of the execution engine.

CC @tweise

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
--- --- --- ---

This fixes a bug which led to bind exceptions due to always using a fixed port
range on MacOS. We only have to use a fixed port range for the SDK harness
processes when we're already running in a container, e.g. local testing with the
Job Server running in Docker.

A fixed port range is necessary due to missing host networking on MacOS which
otherwise doesn't allow the SDK harness containers to connect to the container
of the execution engine.
@mxm mxm requested a review from tweise September 5, 2018 13:42
@tweise
Copy link
Contributor

tweise commented Sep 5, 2018

@mxm thanks for working on it! Does this patch also address the Docker container not terminating after the job finished? AFAIK that only happens when running on the Flink cluster, not in embedded mode.

Copy link
Contributor

@tweise tweise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that multiple jobs can be run on the cluster without port conflict.

@tweise tweise merged commit 0749dc5 into apache:master Sep 5, 2018
@mxm mxm deleted the wordcount-docker-on-mac branch September 6, 2018 08:33
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.

None yet

2 participants