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-2233: Allow overriding descriptor generated task.inputs using configs #1065

Closed
wants to merge 4 commits into from

Conversation

prateekm
Copy link
Contributor

@prateekm prateekm commented Jun 4, 2019

No description provided.

@prateekm
Copy link
Contributor Author

prateekm commented Jun 4, 2019

@Sanil15 Can you please take a look for TestRunner changes.

"Specify them using InputDescriptors instead. Ignoring configured task.inputs value of " +
userConfig.get(TaskConfig.INPUT_STREAMS()));
// Don't allow overriding task.inputs to a blank string
if (StringUtils.isBlank(userConfig.get(TaskConfig.INPUT_STREAMS()))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this check required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

samza app-def sets task.inputs = "" by default, so we need to ignore that. It's a simple and useful enough check that I kept this in OSS instead of patching in LI.

Copy link
Contributor

@Sanil15 Sanil15 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes, LGTM!

@prateekm prateekm force-pushed the allow-task-inputs-override branch from 3271f68 to ee0af24 Compare June 7, 2019 00:42
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.

4 participants