Skip to content

Conversation

@aswinshakil
Copy link
Member

What changes were proposed in this pull request?

  1. The container checksum though generated during container close, is not being reported to the SCM.
  2. During DN restart we are not fetching the container checksum into KeyValueContainerData hence the SCM doesn't get the checksum.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-12745

How was this patch tested?

Integration Test

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.

Thanks for fixing this @aswinshakil. Are there some existing container replication tests we can augment to test this as well?

Copy link
Contributor

@hemantk-12 hemantk-12 left a comment

Choose a reason for hiding this comment

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

Thanks, @aswinshakil for the patch. Overall looks good to me apart from the existing comments.

@aswinshakil
Copy link
Member Author

Filed HDDS-12824 to optimize container checksum read during DN startup.

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.

Just a few minor comments. Functionality LGTM when accounting for the follow up jira

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.

Thanks for the fix. LGTM.

@aswinshakil aswinshakil merged commit 8768d04 into apache:HDDS-10239-container-reconciliation Apr 15, 2025
43 checks passed
errose28 added a commit to errose28/ozone that referenced this pull request May 6, 2025
…anner-builds-mt

* HDDS-10239-container-reconciliation:
  HDDS-12849. On demand container scanner should not be static (apache#8296)
  HDDS-12745. Container checksum should be reported during container close and DN restart (apache#8204)

Conflicts:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OnDemandContainerDataScanner.java
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OzoneContainer.java
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerSet.java
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestOnDemandContainerDataScanner.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants