mirror of https://github.com/apache/lucene.git
LUCENE-8149: NRTCachingDirectory does not need to preemptively delete segment files and generate exceptions
This commit is contained in:
parent
dd90bfbe87
commit
4bd49726c1
|
@ -142,18 +142,8 @@ public class NRTCachingDirectory extends FilterDirectory implements Accountable
|
|||
if (VERBOSE) {
|
||||
System.out.println(" to cache");
|
||||
}
|
||||
try {
|
||||
in.deleteFile(name);
|
||||
} catch (IOException ioe) {
|
||||
// This is fine: file may not exist
|
||||
}
|
||||
return cache.createOutput(name, context);
|
||||
} else {
|
||||
try {
|
||||
cache.deleteFile(name);
|
||||
} catch (IOException ioe) {
|
||||
// This is fine: file may not exist
|
||||
}
|
||||
return in.createOutput(name, context);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -192,6 +192,9 @@ Optimizations
|
|||
* SOLR-11711: Fixed distributed processing of facet.field/facet.pivot sub requests to prevent requesting
|
||||
unneccessary and excessive '0' count terms from each shard (Houston Putman via hossman)
|
||||
|
||||
* LUCENE-8149: NRTCachingDirectory does not need to preemptively delete segment files and generate exceptions
|
||||
(Erick Erickson)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue