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-2434: Fix the coordinator steam creation workflow #1252

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

shanthoosh
Copy link
Contributor

@shanthoosh shanthoosh commented Jan 15, 2020

Symptom: Currently the coordinator kafka topic of a samza job is created with cleanup.policy set to 'delete' instead of 'compact' for certain cases. This potentially leads to losing all the metadata(JobModel/Config) stored in coordinator stream for some samza jobs.

Cause: The control-flow in KafkaSystemAdmin.createStream to build the coordinator stream spec swallows the essential kafka-topic configurations and passes along the empty configuration bag to the kafka-broker when creating the coordinator stream. This issue was introduced in SAMZA-1868.

Changes: Fix the topic-creation control-flow for the coordinator topics and generate the correct topic-configurations.

Tests: Added unit tests to validate that the expected topic configuration bag was generated for the coordinator stream topics.

API Changes: None

Upgrade Instructions: None

Usage Instructions: None

@shanthoosh shanthoosh changed the title Create coordinator steam in samza with compact.policy set to compact instead of delete. Jan 15, 2020
@shanthoosh shanthoosh changed the title Create coordinator steam in samza with cleanup.policy set to compact instead of delete. Jan 15, 2020
@shanthoosh shanthoosh changed the title Fix the coordinator steam creation workflow Jan 15, 2020
@shanthoosh
Copy link
Contributor Author

@prateekm Can you please take a look at this patch.

Copy link
Contributor

@prateekm prateekm left a comment

Choose a reason for hiding this comment

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

Thanks.

Copy link
Contributor

@sborya sborya left a comment

Choose a reason for hiding this comment

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

thanks.

@sborya sborya merged commit 2827c96 into apache:master Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants