Skip to content

Conversation

@timmylicheng
Copy link
Contributor

What changes were proposed in this pull request?

Construct new PipelineManager and PipelineStateManager interface for SCM.

(Please fill in changes proposed in this fix)

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-3196

(Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HDDS-XXXX. Fix a typo in YYY.)

Please replace this section with the link to the Apache JIRA)

How was this patch tested?

TODO in https://issues.apache.org/jira/browse/HDDS-3679
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

@timmylicheng timmylicheng self-assigned this May 28, 2020
}

public static PipelineManager newPipelineManager(
ConfigurationSource conf, SCMHAManager scmhaManager,
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: we can just pass RatisServer instead of SCMHAManager here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We may have more stuff in SCMHAManager than just SCMRatisServer for PipelineManager use cases. The idea here is to have a manager interface for SCM HA so that we won't worry about passing more things into PipelineManager like configs or other things. @xiaoyuyao

Copy link
Contributor

Choose a reason for hiding this comment

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

In the future, we have to do isLeader check inside PipelineManager for which we might need SCMHAManager instance.

Copy link
Contributor

@nandakumar131 nandakumar131 left a comment

Choose a reason for hiding this comment

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

Overall the patch looks good to me.

@timmylicheng timmylicheng force-pushed the HDDS-3196 branch 2 times, most recently from a3e807c to aac141d Compare May 29, 2020 08:00
Copy link
Contributor

@nandakumar131 nandakumar131 left a comment

Choose a reason for hiding this comment

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

I'm ok with merging the changes and address the comments in the follow-up jiras.

@nandakumar131
Copy link
Contributor

@xiaoyuyao, if you're ok with the changes I will go ahead and merge it.

@nandakumar131 nandakumar131 merged commit 723d23c into apache:HDDS-2823 Jun 1, 2020
@nandakumar131
Copy link
Contributor

@timmylicheng thanks for the contribution.

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