Skip to content

Conversation

@prateekm
Copy link
Contributor

Most changes in StreamConfig are formatting fixes.

@prateekm
Copy link
Contributor Author

cc @vjagadish1989 @xinyuiscool for review

Copy link
Contributor

@vjagadish1989 vjagadish1989 left a comment

Choose a reason for hiding this comment

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

approved. added couple of questions from my review! Thanks.

if (isIntermediate()) {
config.put(String.format(StreamConfig.IS_INTERMEDIATE_FOR_STREAM_ID(), spec.getId()), "true");
config.put(String.format(StreamConfig.CONSUMER_OFFSET_DEFAULT_FOR_STREAM_ID(), spec.getId()), "oldest");
config.put(String.format(StreamConfig.PRIORITY_FOR_STREAM_ID(), spec.getId()), "1");
Copy link
Contributor

Choose a reason for hiding this comment

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

If a user already has prioritized streams, would this put the intermediate stream at the same priority as their input?. Alternately, You could set to INT_MAX here to avoid conflicting with configured priorities?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, will change to INT_MAX

if (isIntermediate()) {
config.put(String.format(StreamConfig.IS_INTERMEDIATE_FOR_STREAM_ID(), spec.getId()), "true");
config.put(String.format(StreamConfig.CONSUMER_OFFSET_DEFAULT_FOR_STREAM_ID(), spec.getId()), "oldest");
config.put(String.format(StreamConfig.PRIORITY_FOR_STREAM_ID(), spec.getId()), "1");
Copy link
Contributor

Choose a reason for hiding this comment

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

@asfgit asfgit closed this in fc6c706 Nov 15, 2017
vjagadish1989 pushed a commit to vjagadish1989/samza that referenced this pull request Dec 5, 2017
Most changes in StreamConfig are formatting fixes.

Author: Prateek Maheshwari <pmaheshw@linkedin.com>

Reviewers: Jagadish Venkatraman <vjagadish1989@gmail.com>

Closes apache#358 from prateekm/intermediate-stream-priority
@prateekm prateekm deleted the intermediate-stream-priority branch May 13, 2018 22:18
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.

2 participants