-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-6994] SamzaRunner: further improvements for upgrading Samza #8221
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
Conversation
|
|
||
| final StateInfo stateInfo = getStateInfo(); | ||
|
|
||
| if (listener != null && (stateInfo.state == State.DONE || stateInfo.state == State.FAILED)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to understand when would we hit this while state is neither Done nor FAILED. What is being protected by having this check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, the status can be RUNNING, since it can be a timed waifForFinish().
| private final SystemReduceFn<K, InputT, ?, OutputT, BoundedWindow> reduceFn; | ||
| private final String stepName; | ||
| private final String stepId; | ||
| private final PCollection.IsBounded isBounded; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import PCollection.IsBounded directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| configBuilder.put("job.host-affinity.enabled", "true"); | ||
| } | ||
|
|
||
| switch (options.getSamzaExecutionEnvironment()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure whether we have logged the entire pipeline option somewhere. Otherwise it would be good to have a log entry here about which execution environment we're running
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Added more logs.
lhaiesp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments
lhaiesp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Run JavaPortabilityApi PreCommit |
|
Run Python PreCommit |
|
Run Website PreCommit |
1 similar comment
|
Run Website PreCommit |
|
|
||
| repositories { | ||
| maven { | ||
| url "https://artifactory.corp.linkedin.com:8083/artifactory/DDS/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity: What is this used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! That was for internal linkedin testing of Samza builds. Let me get rid of it. Thanks!
More improvements for SamzaRunner:
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.