Ethan Rose created HDDS-11253:
---------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to