Github user jpountz commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/503#discussion_r235314171
--- Diff: lucene/core/src/java/org/apache/lucene/index/IndexWriter.java ---
@@ -2607,7 +2607,9 @@ synchronized long
publishFrozenUpdates(FrozenBufferedUpdates packet) {
// Do this as an event so it applies higher in the stack when we are
not holding DocumentsWriterFlushQueue.purgeLock:
eventQueue.add(w -> {
try {
- packet.apply(w);
+ // we call tryApply here since we don't want to block if a refresh
or a flush is already applying the
+ // packet. The flush will retry this packet anyway to ensure all
of the are applied
--- End diff --
s/all of the/all of them/
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]