[
https://issues.apache.org/jira/browse/SOLR-18683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Gerlowski resolved SOLR-18683.
------------------------------------
Fix Version/s: main(11.0)
10.2
9.11.1
Resolution: Fixed
I opened a Github PR to fix this but got the JIRA number wrong so it didn't get
linked back to this ticket: https://github.com/apache/solr/pull/5383. Sorry if
that confused folks!
That PR is now merged and I've backported it through so it'll appear in 9.11.1,
10.2, and/or 11.0.
> 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
> Fix For: main(11.0), 10.2, 9.11.1
>
>
> 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]