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

SAMZA-2477: JobModel isn't updated with latest "task.inputs" if enabled regex topic rewriter #1299

Merged
merged 3 commits into from Mar 16, 2020

Conversation

alnzng
Copy link
Contributor

@alnzng alnzng commented Feb 28, 2020

Symptom

JobModelManager provides readJobModel() function to let JobCoordinator, ClusterBasedJboCoordinator and etc know the latest JobModel information.

If the users enable regex topic rewriter in their config, readJobModel() function will dynamically load the latest Kafka topic list and generate new TaskModel with new topic partition mappings.

However, it doesn't update the task.inputs in JobModel's Config. So other services depend on task.inputs information will still see stale data.

Cause

JobModelManager.readJobModel() uses the original config instead of the updated config to build JobModel.

Changes

Use updated config to build final JobModel.

Tests

  • All unit tests and integration tests are passed

API Changes

None

Upgrade Instructions

None

Usage Instructions

None

Signed-off-by: Alan Zhang <shuai.xyz@gmail.com>
Signed-off-by: Alan Zhang <shuai.xyz@gmail.com>
Copy link
Contributor

@mynameborat mynameborat left a comment

Choose a reason for hiding this comment

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

Minor comment.
LGTM

Signed-off-by: Alan Zhang <shuai.xyz@gmail.com>
@mynameborat mynameborat merged commit b06cb3f into apache:master Mar 16, 2020
@alnzng alnzng deleted the SAMZA-2477 branch March 16, 2020 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants