Skip to content

Conversation

@nandakumar131
Copy link
Contributor

@nandakumar131 nandakumar131 commented Nov 13, 2019

What changes were proposed in this pull request?

Before this patch, to close a container the scmcli (client) was using notifyObjectStageChange to inform SCM that a container is getting closed, connects to datanode directly and closes the container and again informs SCM that the container has been closed.

After the introduction of IncrementalContainerReport SCM received the state change of a container from datanode as soon as a datanode closes it and the container is marked as CLOSED in SCM. There is no need for a client to call notifyObjectStageChange to mark the container as CLOSED.

We don't need notifyObjectStageChange API anymore, as SCM learns about the state change from datanodes directly.

This change removes notifyObjectStageChange and adds closeContainer API to SCMClientProtocolServer

What is the link to the Apache JIRA

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

How was this patch tested?

Deployed a three node cluster and manually verified close container command.

Note

Incompatible Change: There are proto structure changes

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @nandakumar131 for addressing this problem. The change works fine: container gets closed without error message.

Copy link
Contributor

@anuengineer anuengineer left a comment

Choose a reason for hiding this comment

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

+1. LGTM. I will commit this now.

DeleteContainer = 5;
QueryNode = 6;
NotifyObjectStageChange = 7;
CloseContainer = 7;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should stop doing with after the first Beta. These things break backward compact. Not relevant for this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed.

@anuengineer anuengineer merged commit 528cea3 into apache:master Nov 14, 2019
@nandakumar131 nandakumar131 deleted the HDDS-1940 branch November 14, 2019 02: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.

3 participants