Skip to content

Conversation

@kw2542
Copy link
Contributor

@kw2542 kw2542 commented Jan 10, 2020

Design:
https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner

Changes:

  1. Make ClusterBasedJobCoordinator's constructor to be private
  2. Add static methods createFromMetadataStore() and createFromConfigLoader() to initialize ClusterBasedJobCoordinator instead.
  3. Update CoordinatorStreamStore to its interface MetadataStore to be more generic.
  4. Based on the existence of ENV_SUBMISSION_CONFIG, ClusterBasedJobCoordinator will alternatively deserilize ENV_SUBMISSION_CONFIG and load full job config from config loader factory.
  5. Execute planning, create diagnostics stream and persist full job config back to coordinator stream when loading full job config from config loader.

API Changes:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Upgrade Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Usage Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Tests:
End to end tested with Hello Samza job.

Ke Wu added 3 commits January 10, 2020 11:04
…to read config from loader

Design:
https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner

Changes:

1. Based on the existence of ENV_SUBMISSION_CONFIG, ClusterBasedJobCoordinator will alternatively deserilize ENV_SUBMISSION_CONFIG and load full job config from config loader factory.
2. Execute planning, create diagnostics stream and persist full job config back to coordinator stream when loading full job config from config loader.

API Changes:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Upgrade Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Usage Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Tests:
End to end tested with Hello Samza job.
…oordinator not to merge final config with coordinator stream config to keep consistent with before.
…eric as it may contain config loader properties instead.
Copy link
Contributor

@bkonold bkonold left a comment

Choose a reason for hiding this comment

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

LGTM, but look into the CI failure.

Copy link
Contributor

@cameronlee314 cameronlee314 left a comment

Choose a reason for hiding this comment

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

Can you please add unit tests?

Ke Wu added 4 commits January 15, 2020 15:54
Override config first before applying config rewriters
Refactor ClusterBasedJobCoordinator to be testable
@cameronlee314 cameronlee314 merged commit 5bef725 into apache:master Jan 17, 2020
@kw2542 kw2542 deleted the SAMZA-2410 branch January 17, 2020 23:26
rmatharu-zz pushed a commit to rmatharu-zz/samza that referenced this pull request Jan 21, 2020
…from loader. (apache#1248)

1. Based on the existence of ENV_SUBMISSION_CONFIG, ClusterBasedJobCoordinator will alternatively deserilize ENV_SUBMISSION_CONFIG and load full job config from config loader factory.
2. Execute planning, create diagnostics stream and persist full job config back to coordinator stream when loading full job config from config loader.
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.

3 participants