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-4267] Implement flink context factory methods #5573

Closed
wants to merge 2 commits into from

Conversation

axelmagn
Copy link
Contributor

@axelmagn axelmagn commented Jun 6, 2018

Implement the previously unsupported batchFactory and getStageBundleFactory methods within FlinkExecutableStageContext. These are the core methods relevant to BEAM-4267, but it does not close the bug.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

The ArtifactSource argument used when creating DockerJobBundleFactory
will be unushed until we finalize artifact retrieval on flink.
Therefore we remove it until those plans are finalized.
@axelmagn
Copy link
Contributor Author

axelmagn commented Jun 6, 2018

Do not merge yet.

Implement the previously unsupported batchFactory and
getStageBundleFactory methods within FlinkExecutableStageContext.
@axelmagn
Copy link
Contributor Author

axelmagn commented Jun 6, 2018

Okay, ready for review.

R: @bsidhom
CC: @jkff @angoenka

Copy link
Contributor

@bsidhom bsidhom left a comment

Choose a reason for hiding this comment

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

As mentioned offline, we should move this into a Flink-specific bug.

@@ -37,11 +43,18 @@
}

public static Factory batchFactory() {
return null;
return jobInfo -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

This "factory" should manage singleton state in this case. We want to make sure there's only a single instance of a DockerJobBundleFactory for a given job id. In order to do so, the factory itself needs to be a singleton.

@axelmagn
Copy link
Contributor Author

axelmagn commented Jun 6, 2018

As discussed offline, I'm going to hand this off to you (@bsidhom) since you have a branch with some work on this already, and it connects well with the other stuff you've been working on.

@axelmagn axelmagn closed this Jun 7, 2018
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.

2 participants