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-2171 : Implement MetadataResourceManager to encapsulate loading of metadata resources #1006

Merged

Conversation

dnishimura
Copy link
Contributor

@dnishimura dnishimura commented Apr 22, 2019

Motivation: Before this PR, the code to create the checkpoint and changelog streams are copy and pasted to each JobCoordinator implementation. This PR encapsulates that logic in a MetadataResourceManager so that future JobCoordinator implementations don't have to copy and paste duplicate logic and we can add other metadata resources that we may want to create in the future.

@shanthoosh @prateekm @cameronlee314 - please take a look when you get a chance. The likely follow on is to add the startpoint manager fan out call in the MetadataResourceManager#createResources method.

* Creates and loads the required metadata resources for checkpoints, changelog stream and other
* resources related to the metadata system
*/
public void createResources() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the follow on startpoint work, I plan to add either the fan out call here for the fan out model or the ack clean up call here for the intent-ack model.

@dnishimura dnishimura changed the title SAMZA-2171 : Implement MetadataResourceLoader to encapsulate loading of metadata resources SAMZA-2171 : Implement MetadataResourceManager to encapsulate loading of metadata resources Apr 24, 2019
Copy link
Contributor Author

@dnishimura dnishimura left a comment

Choose a reason for hiding this comment

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

Thanks @cameronlee314 and @prateekm for your reviews. Please see my responses.

* Creates and loads the required metadata resources for checkpoints, changelog stream and other
* resources related to the metadata system
*/
public void createResources() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the follow on startpoint work, I plan to add either the fan out call here for the fan out model or the ack clean up call here for the intent-ack model.

@dnishimura
Copy link
Contributor Author

dnishimura commented Apr 29, 2019

@cameronlee314 & @prateekm please see my responses and updates. Thanks.

Copy link
Contributor

@cameronlee314 cameronlee314 left a comment

Choose a reason for hiding this comment

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

One minor comment, otherwise LGTM.

Copy link
Contributor

@shanthoosh shanthoosh left a comment

Choose a reason for hiding this comment

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

LGTM.

@cameronlee314
Copy link
Contributor

@prateekm do you have further comments/concerns? Otherwise, will merge.

@dnishimura
Copy link
Contributor Author

@prateekm do you have further comments/concerns? Otherwise, will merge.

@cameronlee314 - He told me offline he wasn't actively reviewing this PR and he gave a 👍 for my response on his sole comment.

@cameronlee314 cameronlee314 merged commit ab72618 into apache:master Apr 30, 2019
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