Package org.elasticsearch.index.engine

Examples of org.elasticsearch.index.engine.OptimizeFailedEngineException


        possibleMergeNeeded = false;
        try (InternalLock _ = readLock.acquire()) {
            currentIndexWriter().maybeMerge();
        } catch (Throwable t) {
            maybeFailEngine(t, "maybe_merge");
            throw new OptimizeFailedEngineException(shardId, t);
        }
    }
View Full Code Here


   
    private void waitForMerges(boolean flushAfter) {
        try {
            currentIndexWriter().waitForMerges();
        } catch (IOException e) {
            throw new OptimizeFailedEngineException(shardId, e);
        }
        if (flushAfter) {
            flush(new Flush().force(true).waitIfOngoing(true));
        }
    }
View Full Code Here

                } else {
                    writer.forceMerge(optimize.maxNumSegments(), false);
                }
            } catch (Throwable t) {
                maybeFailEngine(t, "optimize");
                throw new OptimizeFailedEngineException(shardId, t);
            } finally {
                optimizeMutex.set(false);
            }
        }
       
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.engine.OptimizeFailedEngineException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.