[ 
https://issues.apache.org/jira/browse/SOLR-18683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SOLR-18683:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: main(11.0), 10.2, 9.11.1
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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