Jason Gerlowski created SOLR-18683:
--------------------------------------

             Summary: BackupRepos shouldn't leave partial files behind when a 
copy fails
                 Key: SOLR-18683
                 URL: https://issues.apache.org/jira/browse/SOLR-18683
             Project: Solr
          Issue Type: Improvement
          Components: Backup/Restore
            Reporter: Jason Gerlowski
            Assignee: Jason Gerlowski


BackupRepository.copyIndexFileFrom/To has no defined behavior when a copy fails 
partway, and the implementations differ:

* The Local repository removes the partial destination file.
* The S3 and GCS downloads (copyIndexFileTo) leave the partially written file 
in the target Directory.
* S3 upload commits a truncated file in some cases

We should clarify the semantics in the BackupRepository interface itself and 
then make the implementations themselves more idempotent.  This will help 
backup/restore stability generally, and open the door to other improvements 
like better retry logic when network copies timeout or fail.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to