What happened here? This is un-understandable. The issue is really unrelated to locks i think, because IndexReader doesnt "write" anymore and never gets a lock, the test is kind of useless?
But it opens lots of IWs over and over, and here windows says "access denied" trying to read the .si file. The only situation I can imagine this happening in, is if this .si file is still open for write. Unfortunately MDW checks this *AFTER* it tries to open the file: I'll reverse the order of those tests so we get a better exception if thats whats happening (anywhere). But I still don't get what windows is doing. On Wed, Jun 24, 2015 at 10:04 PM, Policeman Jenkins Server <[email protected]> wrote: > Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Windows/4961/ > Java: 64bit/jdk1.8.0_45 -XX:-UseCompressedOops -XX:+UseG1GC > > 1 tests failed. > FAILED: org.apache.lucene.store.TestNativeFSLockFactory.testStressLocks > > Error Message: > IndexWriter hit unexpected exceptions > > Stack Trace: > java.lang.AssertionError: IndexWriter hit unexpected exceptions > at > __randomizedtesting.SeedInfo.seed([D86EAC0AB0E8ECFC:865FE2F7AC44249A]:0) > at org.junit.Assert.fail(Assert.java:93) > at org.junit.Assert.assertTrue(Assert.java:43) > at > org.apache.lucene.store.BaseLockFactoryTestCase.testStressLocks(BaseLockFactoryTestCase.java:169) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886) > at > org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) > at > org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65) > at > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42) > at > com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) > at > com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54) > at > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65) > at > org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365) > at java.lang.Thread.run(Thread.java:745) > > > > > Build Log: > [...truncated 941 lines...] > [junit4] Suite: org.apache.lucene.store.TestNativeFSLockFactory > [junit4] 1> Stress Test Index Writer: creation hit unexpected exception: > java.nio.file.AccessDeniedException: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\build\core\test\J1\temp\lucene.store.TestNativeFSLockFactory_D86EAC0AB0E8ECFC-001\tempDir-007\_a.si > [junit4] 1> java.nio.file.AccessDeniedException: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\build\core\test\J1\temp\lucene.store.TestNativeFSLockFactory_D86EAC0AB0E8ECFC-001\tempDir-007\_a.si > [junit4] 1> at > sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) > [junit4] 1> at > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) > [junit4] 1> at > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) > [junit4] 1> at > sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115) > [junit4] 1> at > org.apache.lucene.mockfile.FilterFileSystemProvider.newFileChannel(FilterFileSystemProvider.java:203) > [junit4] 1> at > org.apache.lucene.mockfile.DisableFsyncFS.newFileChannel(DisableFsyncFS.java:46) > [junit4] 1> at > org.apache.lucene.mockfile.FilterFileSystemProvider.newFileChannel(FilterFileSystemProvider.java:203) > [junit4] 1> at > org.apache.lucene.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:167) > [junit4] 1> at > org.apache.lucene.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:167) > [junit4] 1> at > org.apache.lucene.mockfile.FilterFileSystemProvider.newFileChannel(FilterFileSystemProvider.java:203) > [junit4] 1> at > java.nio.channels.FileChannel.open(FileChannel.java:287) > [junit4] 1> at > java.nio.channels.FileChannel.open(FileChannel.java:335) > [junit4] 1> at > org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:82) > [junit4] 1> at > org.apache.lucene.util.LuceneTestCase.slowFileExists(LuceneTestCase.java:2566) > [junit4] 1> at > org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:640) > [junit4] 1> at > org.apache.lucene.store.Directory.openChecksumInput(Directory.java:109) > [junit4] 1> at > org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1009) > [junit4] 1> at > org.apache.lucene.codecs.lucene50.Lucene50SegmentInfoFormat.read(Lucene50SegmentInfoFormat.java:82) > [junit4] 1> at > org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:341) > [junit4] 1> at > org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:170) > [junit4] 1> at > org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:858) > [junit4] 1> at > org.apache.lucene.store.BaseLockFactoryTestCase$WriterThread.run(BaseLockFactoryTestCase.java:194) > [junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestNativeFSLockFactory -Dtests.method=testStressLocks > -Dtests.seed=D86EAC0AB0E8ECFC -Dtests.slow=true -Dtests.locale=ms > -Dtests.timezone=America/Coral_Harbour -Dtests.asserts=true > -Dtests.file.encoding=ISO-8859-1 > [junit4] FAILURE 1.67s J1 | TestNativeFSLockFactory.testStressLocks <<< > [junit4] > Throwable #1: java.lang.AssertionError: IndexWriter hit > unexpected exceptions > [junit4] > at > __randomizedtesting.SeedInfo.seed([D86EAC0AB0E8ECFC:865FE2F7AC44249A]:0) > [junit4] > at > org.apache.lucene.store.BaseLockFactoryTestCase.testStressLocks(BaseLockFactoryTestCase.java:169) > [junit4] > at java.lang.Thread.run(Thread.java:745) > [junit4] 2> NOTE: leaving temporary files on disk at: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\build\core\test\J1\temp\lucene.store.TestNativeFSLockFactory_D86EAC0AB0E8ECFC-001 > [junit4] 2> NOTE: test params are: codec=Asserting(Lucene53): > {content=TestBloomFilteredLucenePostings(BloomFilteringPostingsFormat(Lucene50(blocksize=128)))}, > docValues:{}, sim=DefaultSimilarity, locale=ms, > timezone=America/Coral_Harbour > [junit4] 2> NOTE: Windows 7 6.1 amd64/Oracle Corporation 1.8.0_45 > (64-bit)/cpus=3,threads=1,free=295553688,total=470810624 > [junit4] 2> NOTE: All tests run in this JVM: [TestSegmentInfos, > Test2BPositions, TestPersistentSnapshotDeletionPolicy, > TestDocValuesRewriteMethod, TestDocCount, TestTieredMergePolicy, > TestFileSwitchDirectory, TestMatchNoDocsQuery, TestLongPostings, > TestSearchAfter, TestOmitTf, TestPackedTokenAttributeImpl, TestDateTools, > TestDeterminism, TestFieldsReader, TestSpans, TestSameScoresWithThreads, > TestIndexInput, TestParallelLeafReader, TestAutomaton, TestFixedBitSet, > TestConsistentFieldNumbers, TestSearcherManager, TestSearch, > TestThreadedForceMerge, TestMultiThreadTermVectors, TestDirectoryReader, > TestFieldReuse, TestSegmentMerger, TestNotDocIdSet, > FuzzyTermOnShortTermsTest, TestBooleanScorer, TestNumericRangeQuery32, > TestUsageTrackingFilterCachingPolicy, TestLiveFieldValues, > TestMergeSchedulerExternal, TestAssertions, TestIndexReaderClose, > TestTryDelete, TestTerm, TestNRTCachingDirectory, TestDeterminizeLexicon, > TestIndexWriterMergePolicy, TestBlockPostingsFormat2, > TestIndexWriterNRTIsCurrent, TestLucene50FieldInfoFormat, > TestCachingWrapperQuery, TestDemo, TestBooleanOr, TestBooleanMinShouldMatch, > TestSortedSetSelector, TestPerSegmentDeletes, TestSpanExplanations, > TestSimilarityBase, TestPayloadNearQuery, TestNeedsScores, > TestDocumentsWriterStallControl, TestUniqueTermCount, TestTimSorter, > TestMultiMMap, TestDuelingCodecsAtNight, TestCodecs, TestMergeRateLimiter, > TestTermsEnum2, TestTransactionRollback, TestHighCompressionMode, > TestSimpleAttributeImpl, TestStressDeletes, TestPayloads, > TestRecyclingIntBlockAllocator, Test4GBStoredFields, > TestNumericDocValuesUpdates, TestRAMDirectory, TestArrayUtil, > TestPrefixInBooleanQuery, TestSpanTermQuery, TestToken, TestForUtil, > TestByteArrayDataInput, TestNativeFSLockFactory] > [junit4] Completed [131/393] on J1 in 8.03s, 10 tests, 1 failure <<< > FAILURES! > > [...truncated 847 lines...] > BUILD FAILED > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\build.xml:526: The > following error occurred while executing this line: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\build.xml:474: The > following error occurred while executing this line: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\build.xml:61: The > following error occurred while executing this line: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\extra-targets.xml:39: > The following error occurred while executing this line: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\build.xml:50: > The following error occurred while executing this line: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\common-build.xml:1426: > The following error occurred while executing this line: > C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\common-build.xml:981: > There were test failures: 393 suites, 3170 tests, 1 failure, 52 ignored (48 > assumptions) > > Total time: 5 minutes 29 seconds > Build step 'Invoke Ant' marked build as failure > Archiving artifacts > Recording test results > Email was triggered for: Failure - Any > Sending email for trigger: Failure - Any > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
