Tests: increase logging for lucene commit during flush in InternalEngine

This commit is contained in:
Ryan Ernst 2015-04-09 00:25:05 -07:00
parent c821b8d3b4
commit a5bfe332e5
1 changed files with 2 additions and 0 deletions

View File

@ -621,7 +621,9 @@ public class InternalEngine extends Engine {
long translogId = translogIdGenerator.incrementAndGet();
translog.newTransientTranslog(translogId);
indexWriter.setCommitData(Collections.singletonMap(Translog.TRANSLOG_ID_KEY, Long.toString(translogId)));
logger.trace("starting commit for flush");
commitIndexWriter(indexWriter);
logger.trace("finished commit for flush");
// we need to refresh in order to clear older version values
refresh("version_table_flush");
// we need to move transient to current only after we refresh