-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-9883. Recon - Improve the performance of processing IncrementalContainerReport from DN #5793
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
…alContainerReport requests from DN.
|
@sumitagrawl Pls review. |
…alContainerReport requests from DN.
sumitagrawl
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.
@devmadhuu Thanks for working over this, have few comments
...p-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconContainerReportQueue.java
Outdated
Show resolved
Hide resolved
...econ/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconStorageContainerManagerFacade.java
Outdated
Show resolved
Hide resolved
sumitagrawl
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.
@devmadhuu LGTM
|
I'm getting this exception which loosk related to this PR
|
This issue is being tracked at HDDS-10413 |
…IncrementalContainerReport from DN (apache#5793) (cherry picked from commit 6021582) Change-Id: Ic9fa1c235a2c347cf9375f6a1da9a47f5dcba213
…ontainerReport from DN (apache#5793) (cherry picked from commit 6021582)
…ontainerReport from DN (apache#5793) (cherry picked from commit 6021582)
…ontainerReport from DN (apache#5793) (cherry picked from commit 6021582)
What changes were proposed in this pull request?
There is a difference between SCM's IncrementalContainerReportHandler and Recon's IncrementalContainerReportHandler , Recon always connects to SCM and verify each container before adding new container to its own containerStateManager cache. This could be a bottle neck if SCM may respond slow and frequent ICR requests may pile up in queue. So as of now, this PR will improve below multiple things:
Merge the Incremental container report (ICR) to existing list of ICR reports.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9883
How was this patch tested?
Tested using existing Junit tests after updating existing test -
TestReconIncrementalContainerReportHandler