explicitly set optimize parameters when doing async merge
This commit is contained in:
parent
4a27671d0c
commit
2d94087f90
|
@ -622,7 +622,7 @@ public class InternalIndexShard extends AbstractIndexShardComponent implements I
|
||||||
@Override public void run() {
|
@Override public void run() {
|
||||||
try {
|
try {
|
||||||
// -1 means maybe merge
|
// -1 means maybe merge
|
||||||
engine.optimize(new Engine.Optimize().maxNumSegments(-1).waitForMerge(false));
|
engine.optimize(new Engine.Optimize().maxNumSegments(-1).waitForMerge(false).flush(false).refresh(false));
|
||||||
} catch (EngineClosedException e) {
|
} catch (EngineClosedException e) {
|
||||||
// we are being closed, ignore
|
// we are being closed, ignore
|
||||||
} catch (OptimizeFailedEngineException e) {
|
} catch (OptimizeFailedEngineException e) {
|
||||||
|
|
Loading…
Reference in New Issue