Skip to content

Conversation

@aswinshakil
Copy link
Member

What changes were proposed in this pull request?

This is PART(1/2) for implementing container diff and repair logic between two containers. This patch does not include the actual repair logic, rather it gives the diff between two containers.

What is the link to the Apache JIRA

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

How was this patch tested?

Added Unit tests.

Copy link
Contributor

@kerneltime kerneltime left a comment

Choose a reason for hiding this comment

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

First round. Will go over it again.

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 working on this @aswinshakil

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 updates @aswinshakil. I'll post another review for the tests as well.

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.

Here's part 2 reviewing the test code.

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 updates @aswinshakil. As discussed we are still working on the best way to do fault injection into the tree and tests with deleted blocks, but I've left some other minor comments as well.

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 updates @aswinshakil only minor comments remaining. I've resolved all older comments that have been addressed but if you scroll up I think there are still a few open items.

@errose28 errose28 changed the title HDDS-10928. Implement container comparison and repair logic within datanodes. HDDS-10928. Implement container comparison logic within datanodes. Nov 20, 2024
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 updates @aswinshakil LGTM

Comment on lines +161 to +162
throw new StorageContainerException("The container #" + thisContainer.getContainerID() +
" doesn't have container checksum", ContainerProtos.Result.IO_EXCEPTION);
Copy link
Contributor

Choose a reason for hiding this comment

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

We are using the same result code for this case and the legitimate IO exception case. This might be okay because we could want the caller to queue the scanner for on demand scanning in both cases. We can leave it for now and revisit in the follow up patch that needs to handle this if required.

@errose28 errose28 merged commit d17c41c into apache:HDDS-10239-container-reconciliation Nov 22, 2024
39 checks passed
errose28 added a commit to errose28/ozone that referenced this pull request Nov 26, 2024
…anner-builds-mt

* HDDS-10239-container-reconciliation:
  HDDS-10928. Implement container comparison logic within datanodes. (apache#7293)
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.

3 participants