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

ASF subversion and git services commented on SOLR-18684:
--------------------------------------------------------

Commit 5b8f2fcf13d172bebff801384c4a4e283695d465 in solr's branch 
refs/heads/branch_9_11 from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=5b8f2fcf13d ]

SOLR-18684: Retry IO errs on backup+restore copying (#5387)

Prior to this commit Solr's backup/restore framework had no consistent
support for retrying IO errors.  This caused lots of problems for users
with large indices: a restore or installshard might copy 100s of GB and
fail on the very last file due to a single connection-drop.

This commit addresses this problem by adding retry logic at the
framework level.  Solr will retry certain IOExceptions
`solr.backup.maxcopyretries` times (defaults to 2), giving users a bit
of protection against tiny network blips failing such long, expensive
processes.

(cherry picked from commit 6d2a8dd96cb32bd7b21ae09c286b4ccc3b112c69)
(cherry picked from commit 3ba107f5756036dd3882b71fbb1b8b2bd3a37af1)
(cherry picked from commit a333df85d1a1a970fcf649ddc5c1b8f349c9539a)


> 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
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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