ptlrs opened a new pull request, #12139: URL: https://github.com/apache/ozone/pull/12139
## What changes were proposed in this pull request? A datanode creates a container replica when a client first writes to a non-existing container. Today, deleting a replica also removes its Witness DB entry. A client that holds a stale but valid allocated block can send a late write after that container deletion. The datanode then treats the container as new and recreates an empty replica containing only the newer data. Subsequent replication can spread these malformed containers. This PR 1. Does not delete the witness db entries when containers are deleted 2. Checks for witness db entries before creating the containers 3. Ignores existing witness db entries for creating recovering containers 4. Does not mark deleted containers in witness db as missing 5. Adds tests ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17908 ## How was this patch tested? Added integration tests CI: https://github.com/ptlrs/ozone/actions/runs/45247011023 -- 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]
