Repository navigation
Conversation
chihsuan
reviewed
Oct 5, 2026
F64116045
approved these changes
Oct 6, 2026
F64116045
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Thanks for fixing this!
sreejasahithi
self-requested a review
October 16, 2026 04:20
sreejasahithi
left a comment
Contributor
There was a problem hiding this comment.
Thanks @rich7420 overall LGTM
just few non-blocking nit
Comment on lines
369
to
375
| /** | ||
| * Removes the Container matching with specified containerId. | ||
| * @param containerId ID of the container to remove | ||
| * @return If container is removed from containerMap returns true, otherwise | ||
| * false | ||
| */ | ||
| private boolean removeContainer(long containerId, boolean markMissing, boolean removeFromDB) |
Contributor
There was a problem hiding this comment.
nit: I think it would be better to update this javadoc aswell , as now it also calls removeRecoveringContainer
| package org.apache.hadoop.ozone.container.common.volume; | ||
|
|
||
| import static org.apache.commons.lang3.RandomStringUtils.secure; | ||
| import static org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.ContainerDataProto.State.RECOVERING; |
Contributor
There was a problem hiding this comment.
nit: you are already importing "org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.ContainerDataProto.State" , so we can drop this and use State.RECOVERING everywhere
Contributor
Author
|
The Merged master to re-run CI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Removing a RECOVERING container from
ContainerSetcan leave its recovery deadline inrecoveringContainerMapuntil the background scrub removes it.Clear the recovering entry in
ContainerSet's shared removal method so deletion, failed-volume removal, and memory-only removal use the same cleanup. Clear the recovery entry before removing the container mapping, preserving the existing delete ordering. The close path keeps its existing cleanup.Retain the force-delete regression test, verify recovery entries during memory-only removal and re-addition, and cover failed volumes with both CLOSED and RECOVERING containers.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16460
How was this patch tested?
TestKeyValueHandler,TestContainerSet,TestVolumeSetDiskChecks, andTestContainerReader: 135 tests passed locally on JDK 21.checkstyle.sh: passed.testDeleteRecoveringContainerregression also fails without the deletion cleanup.