-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-10931. Schedule on demand scan of containers after import #8550
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.
Thanks for the patch @Tejaskriya.
Overall, the patch looks good, some minor comments inline!
...r-service/src/main/java/org/apache/hadoop/ozone/container/replication/ContainerImporter.java
Outdated
Show resolved
Hide resolved
...rvice/src/test/java/org/apache/hadoop/ozone/container/replication/TestContainerImporter.java
Outdated
Show resolved
Hide resolved
...rvice/src/test/java/org/apache/hadoop/ozone/container/replication/TestContainerImporter.java
Outdated
Show resolved
Hide resolved
|
Thanks for the review @aryangupta1998, I have addressed all the comments! |
|
@ptlrs can you review this? |
...r-service/src/main/java/org/apache/hadoop/ozone/container/replication/ContainerImporter.java
Outdated
Show resolved
Hide resolved
...rvice/src/test/java/org/apache/hadoop/ozone/container/replication/TestContainerImporter.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 @Tejaskriya for the PR.
I have a question about a scenario where the scan may be skipped post-import.
.../src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OnDemandContainerDataScanner.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.
The changes for resetting the timestamp 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.
LGTM!
...r-service/src/main/java/org/apache/hadoop/ozone/container/replication/ContainerImporter.java
Show resolved
Hide resolved
errose28
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.
Aside from the minor discussion on debug logging LGTM as well.
...r-service/src/main/java/org/apache/hadoop/ozone/container/replication/ContainerImporter.java
Show resolved
Hide resolved
|
Thanks for the reviews @aryangupta1998 @ptlrs @errose28 ! |
What changes were proposed in this pull request?
To make sure that containers are replicated successfully, we should scan the container soon after importing it. If there is an issue, SCM will be notified and replication can be retried.
This PR schedules a async scan of the container after import.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10931
How was this patch tested?
Added unit test in TestContainerImporter