-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-8781. Allow on demand metadata scanning of open containers #8442
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
aryangupta1998
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.
Overall, the changes look good to me!
Some minor comments inline.
...vice/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OnDemandContainerScanner.java
Outdated
Show resolved
Hide resolved
...vice/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OnDemandContainerScanner.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/hadoop/ozone/dn/scanner/TestOnDemandContainerScannerIntegration.java
Outdated
Show resolved
Hide resolved
|
Thanks for the review @aryangupta1998 , I have addressed all the changes you have suggested |
|
@ptlrs can you review this? |
...rc/test/java/org/apache/hadoop/ozone/dn/scanner/TestOnDemandContainerScannerIntegration.java
Outdated
Show resolved
Hide resolved
ptlrs
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.
Thank you @Tejaskriya for this PR. It looks mostly good.
...vice/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OnDemandContainerScanner.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/hadoop/ozone/dn/scanner/TestOnDemandContainerScannerIntegration.java
Outdated
Show resolved
Hide resolved
...vice/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OnDemandContainerScanner.java
Outdated
Show resolved
Hide resolved
ptlrs
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 the changes @Tejaskriya. LGTM.
aryangupta1998
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 the patch @Tejaskriya, LGTM!
|
Thanks @Tejaskriya for the patch, @aryangupta1998, @ptlrs for the review. |
What changes were proposed in this pull request?
Currently on demand scanning does a full check (data and metadata) of closed containers only. Data scan of blocks can only be done on closed containers, but metadata scan can be done on open containers. When an open container is queued for on-demand scanning, the scanner should do a metadata scan instead of ignoring it.
This PR introduces metadata scan for open containers as well.
What is the link to the Apache JIRA
HDDS-8781
How was this patch tested?
Updated existing unit and integration tests