mirror of https://github.com/apache/lucene.git
SOLR-9470: Index replication interactions with IndexWriter can cause deadlock.
This commit is contained in:
parent
739c0a7bf2
commit
82440f307a
|
@ -125,6 +125,8 @@ Bug Fixes
|
|||
at a node before its local state had updated with the new collection data
|
||||
(Alan Woodward)
|
||||
|
||||
* SOLR-9470: Index replication interactions with IndexWriter can cause deadlock. (Xunlong via Mark Miller)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -422,11 +422,15 @@ public class IndexFetcher {
|
|||
} finally {
|
||||
writer.decref();
|
||||
}
|
||||
solrCore.getUpdateHandler().getSolrCoreState().closeIndexWriter(solrCore, true);
|
||||
}
|
||||
boolean reloadCore = false;
|
||||
|
||||
try {
|
||||
// we have to be careful and do this after we know isFullCopyNeeded won't be flipped
|
||||
if (!isFullCopyNeeded) {
|
||||
solrCore.getUpdateHandler().getSolrCoreState().closeIndexWriter(solrCore, true);
|
||||
}
|
||||
|
||||
LOG.info("Starting download (fullCopy={}) to {}", isFullCopyNeeded, tmpIndexDir);
|
||||
successfulInstall = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue