Skip to content

Conversation

@avijayanhwx
Copy link
Contributor

@avijayanhwx avijayanhwx commented Jan 29, 2020

What changes were proposed in this pull request?

CREATE container needs to be handled differently in Recon since it is initiated in the SCM, and Recon does not know about that. It should not throw a ContainerNotFoundException when it suddenly sees a new container.

Whenever a new container is created on the Datanode, it sends an incremental container report. This is picked up by Recon, treated as a new container and then Recon queries SCM about the new container.

What is the link to the Apache JIRA

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

How was this patch tested?

Manually tested.
Unit tested.

Copy link
Contributor

@swagle swagle 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

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 for working on this @avijayanhwx. LGTM. Can you please consider some suggested code simplification?

@avijayanhwx
Copy link
Contributor Author

@adoroszlai Thanks for the review. Addressed your review comments.

@adoroszlai
Copy link
Contributor

Thanks @avijayanhwx for updating the patch.

@nandakumar131 would you like to review this or can I merge it?

@nandakumar131
Copy link
Contributor

@adoroszlai Thanks for the review. I will take a look at the changes and merge it.

@nandakumar131 nandakumar131 merged commit 7a3dcf9 into apache:master Feb 1, 2020
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