Core: add trace logging for the commitTranslog=false case in InternalEngine.flush
This commit is contained in:
parent
a243b3f924
commit
9981d69e06
|
@ -621,7 +621,7 @@ public class InternalEngine extends Engine {
|
||||||
long translogId = translogIdGenerator.incrementAndGet();
|
long translogId = translogIdGenerator.incrementAndGet();
|
||||||
translog.newTransientTranslog(translogId);
|
translog.newTransientTranslog(translogId);
|
||||||
indexWriter.setCommitData(Collections.singletonMap(Translog.TRANSLOG_ID_KEY, Long.toString(translogId)));
|
indexWriter.setCommitData(Collections.singletonMap(Translog.TRANSLOG_ID_KEY, Long.toString(translogId)));
|
||||||
logger.trace("starting commit for flush");
|
logger.trace("starting commit for flush; commitTranslog=true");
|
||||||
commitIndexWriter(indexWriter);
|
commitIndexWriter(indexWriter);
|
||||||
logger.trace("finished commit for flush");
|
logger.trace("finished commit for flush");
|
||||||
// we need to refresh in order to clear older version values
|
// we need to refresh in order to clear older version values
|
||||||
|
@ -650,7 +650,9 @@ public class InternalEngine extends Engine {
|
||||||
try {
|
try {
|
||||||
long translogId = translog.currentId();
|
long translogId = translog.currentId();
|
||||||
indexWriter.setCommitData(Collections.singletonMap(Translog.TRANSLOG_ID_KEY, Long.toString(translogId)));
|
indexWriter.setCommitData(Collections.singletonMap(Translog.TRANSLOG_ID_KEY, Long.toString(translogId)));
|
||||||
|
logger.trace("starting commit for flush; commitTranslog=false");
|
||||||
commitIndexWriter(indexWriter);
|
commitIndexWriter(indexWriter);
|
||||||
|
logger.trace("finished commit for flush");
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
throw new FlushFailedEngineException(shardId, e);
|
throw new FlushFailedEngineException(shardId, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue