InternalEngine - added an assert to verify refresh was performed by lucene
This commit is contained in:
parent
f19f729498
commit
1aac41e0d1
|
@ -707,7 +707,8 @@ public class InternalEngine extends AbstractIndexShardComponent implements Engin
|
|||
synchronized (refreshMutex) {
|
||||
if (dirty || refresh.force()) {
|
||||
dirty = false;
|
||||
searcherManager.maybeRefresh();
|
||||
boolean refreshed = searcherManager.maybeRefresh();
|
||||
assert refreshed : "failed to refresh even though refreshMutex was acquired";
|
||||
}
|
||||
}
|
||||
} catch (AlreadyClosedException e) {
|
||||
|
|
Loading…
Reference in New Issue