devmadhuu opened a new pull request, #10161:
URL: https://github.com/apache/ozone/pull/10161
This change prevents DN replication/import from failing the whole target DN
when the volume selected by the volume choosing policy already contains a stale
container directory.
**Key changes:**
- Retry container creation on another candidate volume when
KeyValueContainer#create hits an existing container directory on the selected
volume.
- Add retry-aware import path in ContainerImporter for pull and push
replication.
- Keep retry scoped to CONTAINER_ALREADY_EXISTS; other import failures
still fail normally.
- Handling committed space reservation accounting for both initial and
retry-selected volumes.
- Add unit coverage for stale selected-volume container dirs in
create/import paths.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15135
## How was this patch tested?
This patch was tested using some new unit tests and some existing ones:
**Tests:**
- Added unit coverage for retrying another candidate volume when the
selected volume already has the target container directory.
- Added unit coverage for retry-aware container import when the initially
selected volume has a stale container directory.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]