-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-2850. Handle Create container use case in Recon. #503
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
Conversation
...-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/ozone/recon/scm/ReconIncrementalContainerReportHandler.java
Outdated
Show resolved
Hide resolved
swagle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
adoroszlai
left a comment
There was a problem hiding this 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?
.../src/main/java/org/apache/hadoop/ozone/recon/scm/ReconIncrementalContainerReportHandler.java
Outdated
Show resolved
Hide resolved
...p-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/scm/TestReconContainerManager.java
Outdated
Show resolved
Hide resolved
...p-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/scm/TestReconContainerManager.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/hadoop/ozone/recon/scm/TestReconIncrementalContainerReportHandler.java
Outdated
Show resolved
Hide resolved
|
@adoroszlai Thanks for the review. Addressed your review comments. |
|
Thanks @avijayanhwx for updating the patch. @nandakumar131 would you like to review this or can I merge it? |
|
@adoroszlai Thanks for the review. I will take a look at the changes and merge it. |
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.