Skip to content

Conversation

@Tejaskriya
Copy link
Contributor

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

@Tejaskriya Tejaskriya added the scanners Changes related to datanode container and volume scanners label Jun 3, 2025
@Tejaskriya Tejaskriya marked this pull request as ready for review June 5, 2025 11:41
Copy link
Contributor

@aryangupta1998 aryangupta1998 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 the patch @Tejaskriya.
Overall, the patch looks good, some minor comments inline!

@Tejaskriya
Copy link
Contributor Author

Thanks for the review @aryangupta1998, I have addressed all the comments!

@errose28
Copy link
Contributor

@ptlrs can you review this?

@Tejaskriya Tejaskriya marked this pull request as draft June 16, 2025 09:27
@Tejaskriya Tejaskriya marked this pull request as ready for review June 16, 2025 11:29
@Tejaskriya Tejaskriya requested a review from adoroszlai June 16, 2025 11:30
@adoroszlai adoroszlai marked this pull request as draft June 20, 2025 11:44
Copy link
Contributor

@ptlrs ptlrs left a 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.

@Tejaskriya Tejaskriya requested a review from ptlrs July 8, 2025 05:45
@Tejaskriya Tejaskriya marked this pull request as ready for review July 8, 2025 09:29
Copy link
Contributor

@ptlrs ptlrs 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 the changes @Tejaskriya.
The changes for resetting the timestamp LGTM.

Copy link
Contributor

@aryangupta1998 aryangupta1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@errose28 errose28 left a 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.

@Tejaskriya Tejaskriya merged commit c696942 into apache:master Jul 11, 2025
42 checks passed
@Tejaskriya
Copy link
Contributor Author

Thanks for the reviews @aryangupta1998 @ptlrs @errose28 !

jojochuang pushed a commit to jojochuang/ozone that referenced this pull request Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scanners Changes related to datanode container and volume scanners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants