-
Notifications
You must be signed in to change notification settings - Fork 509
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
HDDS-10681. EC Reconstruction does not issue put block to data index if it is unused #6514
Conversation
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 @sodonnel for the patch, LGTM.
@Test | ||
void testECReconstructionWithPartialStripe() | ||
void testECReconstructParityWithPartialStripe() | ||
throws Exception { | ||
testECReconstructionCoordinator(ImmutableList.of(4, 5), 1); | ||
} |
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.
nit: this can be removed, since recoverableMissingIndexes
includes (4, 5)
, so testECReconstructionCoordinatorWithPartialStripe
covers the same case.
It's OK to do it in #6515, so this can be merged as is.
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.
Good point. I will fix this when I rebase #6515
Thanks for the review @adoroszlai - merging this to master. |
…if it is unused (apache#6514) (cherry picked from commit cba8c85) Conflicts: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/storage/TestContainerCommandsEC.java
…if it is unused (apache#6514) (cherry picked from commit cba8c85)
…if it is unused (apache#6514) (cherry picked from commit cba8c85)
…if it is unused (apache#6514) (cherry picked from commit cba8c85)
…if it is unused (apache#6514) (cherry picked from commit cba8c85) Conflicts: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/storage/TestContainerCommandsEC.java
…if it is unused (apache#6514) (cherry picked from commit cba8c85)
… data index if it is unused (apache#6514) (cherry picked from commit cba8c85) Change-Id: I45c8c731e7179272d14bde666cea18b5b99dfb7c
What changes were proposed in this pull request?
Given a small EC block:
So that it is less than a full stripe and does not use all the datanodes.
When reconstruction happens to replace a replica which is not used in the stripe, the unused containers are not issued with the put block to store the details of the empty block within the container. Note that the container replica will likely have other blocks, so it will still get reconstructed, but it will not be given a reference to this empty block.
All containers are checked for the presence of all blocks during reconstruction. If any of the containers do not have a reference to the block, it is considered an orphan block / abandoned stripe and will not be reconstructed.
Therefore if one replica has no entry for the block, then it is used it another reconstruction for another replica later, that block will not get reconstructed into a second replica. Over time this can result in the reference getting removed from all copies.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10681
How was this patch tested?
Reproduced the issue using a new unit test, and then fixed the code to make the test pass.