There is code in that test that relies on wall time. final long stopTime = System.currentTimeMillis() + 200;
I don't think this is a good idea, it will trigger odd exceptions on heavily loaded test machines. Dawid On Tue, Mar 13, 2018 at 9:28 PM, Dawid Weiss <dawid.we...@gmail.com> wrote: > Doesn't reproduce for me, but looks suspicious? > > [junit4] Suite: org.apache.lucene.index.TestIndexWriterWithThreads > [junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestIndexWriterWithThreads > -Dtests.method=testCloseWithThreads -Dtests.seed=F74EDD534544EE8 > -Dtests.multiplier=2 -Dtests.slow=true -Dtests.locale=el > -Dtests.timezone=America/Tortola -Dtests.asserts=true > -Dtests.file.encoding=UTF-8 > [junit4] FAILURE 0.64s J0 | > TestIndexWriterWithThreads.testCloseWithThreads <<< > [junit4] > Throwable #1: java.lang.AssertionError: thread failed > before indexing a single document > [junit4] > at > __randomizedtesting.SeedInfo.seed([F74EDD534544EE8:12B0C4A257A1544E]:0) > [junit4] > at > org.apache.lucene.index.TestIndexWriterWithThreads.testCloseWithThreads(TestIndexWriterWithThreads.java:223) > [junit4] > at java.lang.Thread.run(Thread.java:748) > [junit4] 1> org.apache.lucene.store.LockObtainFailedException: > lock instance already obtained: (dir=RAMDirectory@64acc9e2 > lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@609351af, > lockName=write.lock) > [junit4] 1> at > org.apache.lucene.store.SingleInstanceLockFactory.obtainLock(SingleInstanceLockFactory.java:44) > [junit4] 1> at > org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) > [junit4] 1> at > org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:104) > [junit4] 1> at > org.apache.lucene.store.MockDirectoryWrapper.obtainLock(MockDirectoryWrapper.java:1049) > [junit4] 1> at > org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:948) > [junit4] 1> at > org.apache.lucene.index.TestIndexWriterWithThreads$DelayedIndexAndCloseRunnable.run(TestIndexWriterWithThreads.java:564) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org