[
https://issues.apache.org/jira/browse/SOLR-18684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152274#comment-18152274
]
ASF subversion and git services commented on SOLR-18684:
--------------------------------------------------------
Commit 6d2a8dd96cb32bd7b21ae09c286b4ccc3b112c69 in solr's branch
refs/heads/main from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=6d2a8dd96cb ]
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.
> 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]