devmadhuu opened a new pull request, #10199:
URL: https://github.com/apache/ozone/pull/10199
## What changes were proposed in this pull request?
This PR handles failed container import cleanup on the DataNode.
`KeyValueContainer.cleanupFailedImport()` now deletes the chunks/ directory
before deleting the metadata/ directory. If cleanup is interrupted or partially
fails between child-
directory deletions, the remaining on-disk state now preferentially
preserves metadata instead of leaving a harder-to-diagnose chunks/-only
residual directory.
A focused test was added to inject an import cleanup failure at metadata
deletion and verify that chunks/ has already been removed while metadata/
remains.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15038
## How was this patch tested?
Added
`TestKeyValueContainer#testFailedImportCleanupDeletesChunksBeforeMetadata`
--
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]