[ 
https://issues.apache.org/jira/browse/SOLR-18684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149801#comment-18149801
 ] 

Jason Gerlowski commented on SOLR-18684:
----------------------------------------

One way to implement this is to create a RetryingBackupRepository 
implementation that extends DelegateBackupRepository.  We could then wire in 
RetryingBackupRepository automatically (or if a certain sysprop is specified).

I'll probably take that approach in a PR and see how it looks.

> Retry I/O failures when doing BackupRepository file copying
> -----------------------------------------------------------
>
>                 Key: SOLR-18684
>                 URL: https://issues.apache.org/jira/browse/SOLR-18684
>             Project: Solr
>          Issue Type: Improvement
>          Components: Backup/Restore
>    Affects Versions: main(11.0)
>            Reporter: Jason Gerlowski
>            Priority: Major
>
> Backup, restore and install-shard operations copy each index file with a 
> single call to BackupRepository.copyIndexFileFrom/To (or copyFileFrom/To), 
> with no retry in Solr itself. The first failed file cancels the remaining 
> copies and fails the whole operation, so one transient error (e.g. a read 
> timeout) on a large index means starting over.
> Some BackupRepository implementations have retry-logic in place, but it's 
> implementation dependent and doesn't cover all scenarios.
> We should put some default retry logic in place at the framework level, so 
> that BackupRepositories don't need to implement this individually.
> (This retry logic becomes much more useful once SOLR-18643 is resolved, so 
> that retries actually have a chance of success instead of failing due to 
> orphaned files, etc.)



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