InternalEngine - added an assert to verify refresh was performed by lucene

This commit is contained in:
Boaz Leskes 2014-03-31 17:28:38 +02:00
parent f19f729498
commit 1aac41e0d1
1 changed files with 2 additions and 1 deletions

View File

@ -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) {