You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ethan Rose (Jira)" <ji...@apache.org> on 2024/08/16 19:19:00 UTC
[jira] [Updated] (HDDS-11253) Handle corrupted merkle tree files
[ https://issues.apache.org/jira/browse/HDDS-11253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ethan Rose updated HDDS-11253:
------------------------------
Status: Patch Available (was: In Progress)
> Handle corrupted merkle tree files
> ----------------------------------
>
> Key: HDDS-11253
> URL: https://issues.apache.org/jira/browse/HDDS-11253
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Ethan Rose
> Assignee: Ethan Rose
> Priority: Major
>
> A merkle tree file may be corrupted during write or by some other error. This should only be a temporary problem since the scanner will rewrite it on its next run. Until that happens failures should be handled accordingly:
> * Clients calling the readMerkleTree API should be able to cleanly fail on a corrupted file. The server does not deserialize it before sending.
> * Reconciliation should regenerate a local checksum file if it is corrupted, as if it does not exist.
> * File write can be done by renaming a temp file into place to avoid corruption from partial writes. The file would either be present or absent if a write fails, but not partially written.
> * Tests using corrupted files should be added.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org