Skip to content

SAMZA-2298: Fix CoordinatorStreamStore creation for LocalApplicationRunner - #1136

Merged
rmatharu-zz merged 1 commit into
apache:masterfrom
dnishimura:samza-2298-standalone-underlying-coordinator-stream
Aug 30, 2019
Merged

rmatharu-zz merged 1 commit into
apache:masterfrom
dnishimura:samza-2298-standalone-underlying-coordinator-stream

Conversation

@dnishimura

Copy link
Copy Markdown
Contributor

Root Causes
For standalone, to prevent a double bootstrap of the coordinator stream in the coordinator stream metadata store from the StreamProcessor and from the ZkJobCoordinator, the initialization of the metadata store was moved up to the LocalApplicationRunner. However, during the refactor, the creation of the underlying coordinator stream was left out.

The other root cause is that the assumption was made if a metadata store was not passed in to the LocalApplicationRunner, by default it will create a coordinator stream metadata store. However, if a PassthroughJobCoordinator is used or if the job.coordinator.system is not defined, the underlying coordinator stream cannot be created. These need to be accounted for.

Fix
Create the default coordinator stream metadata store only if using a ZkJobCoordinator and the coordinator system is defined, then create the underlying coordinator stream if a coordinator stream metadata store is used.

Testing
Tested against beam and the beam-runner examples which use the PassthroughJobCoordinator. Also tested against a ZkJobCoordinator job.

Follow on
The next phase of the metadata store abstraction SAMZA-2271 will clean up these work arounds.

@xinyuiscool @shanthoosh - please review when you get a chance.

@dnishimura

Copy link
Copy Markdown
Contributor Author

@shanthoosh @xinyuiscool - please review when you get a chance. Thanks.

@shanthoosh shanthoosh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the changes.

@dnishimura dnishimura left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review @shanthoosh . Please see my responses.

@shanthoosh

Copy link
Copy Markdown
Contributor

This is a general issue and will need to be eventually addressed

Sure, Please create a follow-up ticket for it.

@shanthoosh shanthoosh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the clarifications.

LGTM.

@dnishimura

Copy link
Copy Markdown
Contributor Author

This is a general issue and will need to be eventually addressed

Sure, Please create a follow-up ticket for it.

Follow-up is tracked by SAMZA-2182
Thanks for reviewing.

@rmatharu-zz
rmatharu-zz merged commit e0b5a32 into apache:master Aug 30, 2019
shekhars-li pushed a commit to shekhars-li/samza that referenced this pull request May 28, 2021
RB=1784879
A=

Updating comment

RB=1784879
G=samza-reviewers
A=

Updating method name

RB=1784879
G=samza-reviewers
A=

SAMZA-2298: Fix CoordinatorStreamStore creation for LocalApplicationRunner (apache#1136)
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