Description
SOLR-11616 purports to fix a bug in Solr's backup functionality that causes 'NoSuchFileException' errors when attempting to backup an index while it is undergoing indexing (and segment merging)
Although SOLR-11616 is marked with "Fix Version: 7.2" it's pretty easy to demonstrate that this bug still exists on master, branch_8x, and even in 7.2 - so it seems less like the current problem is a "regression" and more that the original fix didn't work.
The crux of the problem seems to be concurrency bugs in if/how a commit is "reserved" before attempting to copy the files in that commit to the backup location.
A possible work around discussed in more depth in the comments below is to update solrconfig.xml to explicitly configure the SolrDeletionPolicy with either the maxCommitsToKeep or maxCommitAge options to ensure the commits are kept around long enough for the backup to be created.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-11616 Backup failing on a constantly changing index with NoSuchFileException
- Closed
-
SOLR-13909 Everything about CheckBackupStatus is broken
- Closed
- relates to
-
LUCENE-9040 Questionable/Underspecified behavior of DirectoryReader.getIndexCommit() on NRT Readers
- Open
-
SOLR-13908 Possible bugs when using HdfsDirectoryFactory w/ softCommit=true + openSearcher=true
- Open