remove nocommit

This commit is contained in:
Robert Muir 2016-03-03 23:39:14 -05:00
parent 77ca69e288
commit 4d4190fd82

View file

@ -928,13 +928,6 @@ public class InternalEngine extends Engine {
iwc.setSimilarity(engineConfig.getSimilarity()); iwc.setSimilarity(engineConfig.getSimilarity());
iwc.setRAMBufferSizeMB(engineConfig.getIndexingBufferSize().mbFrac()); iwc.setRAMBufferSizeMB(engineConfig.getIndexingBufferSize().mbFrac());
iwc.setCodec(engineConfig.getCodec()); iwc.setCodec(engineConfig.getCodec());
/* We set this timeout to a highish value to work around
* the default poll interval in the Lucene lock that is
* 1000ms by default. We might need to poll multiple times
* here but with 1s poll this is only executed twice at most
* in combination with the default writelock timeout*/
// iwc.setWriteLockTimeout(5000);
// nocommit: if you really want to sleep, you need to use SleepingLockWrapper. But this is not recommended at all.
iwc.setUseCompoundFile(true); // always use compound on flush - reduces # of file-handles on refresh iwc.setUseCompoundFile(true); // always use compound on flush - reduces # of file-handles on refresh
// Warm-up hook for newly-merged segments. Warming up segments here is better since it will be performed at the end // Warm-up hook for newly-merged segments. Warming up segments here is better since it will be performed at the end
// of the merge operation and won't slow down _refresh // of the merge operation and won't slow down _refresh