I can't see anything obvious that I've forgotten to close.  Is it possible to 
get the log output for the failing tests from Jenkins?

Alan Woodward
www.flax.co.uk


On 2 Jul 2013, at 21:01, Erick Erickson wrote:

> Steve: 
> 
> The file separator thing is fixed (I hope, runs on my machine, but then it 
> did before too), although it does puzzle me why it started happening now. 
> This code's been there for a while.
> 
> Alan:
> The trap I've fallen into way more than once is not closing cores that I 
> opened and/or not closing the container in a finally block..... Should happen 
> on demand though....
> 
> 
> 
> 
> On Tue, Jul 2, 2013 at 3:11 PM, Alan Woodward <[email protected]> wrote:
> Timing!  Was just putting the kids to bed…
> 
> The second one is a file separator fix, I think, but the first looks like 
> I've forgotten to close the CoreContainer somewhere, so Windows can't delete 
> the file.  Will have a look.
> 
> Alan Woodward
> www.flax.co.uk
> 
> 
> On 2 Jul 2013, at 20:05, Steve Rowe wrote:
> 
>> Erick, I can repro on Windows, so I can test it once you have a fix. - Steve
>> 
>> On Jul 2, 2013, at 2:48 PM, Erick Erickson <[email protected]> wrote:
>> 
>>> Gah. I'll try a quick fix since I don't have a Windows box. Looks like the 
>>> same junk with file separator that's tripped me up before.
>>> 
>>> 
>>> 
>>> On Tue, Jul 2, 2013 at 2:43 PM, Mark Miller <[email protected]> wrote:
>>> java.lang.AssertionError: /core1 should have been mentioned in the message
>>>        at
>>> 
>>> On Jul 2, 2013, at 2:34 PM, Policeman Jenkins Server <[email protected]> 
>>> wrote:
>>> 
>>>> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Windows/2995/
>>>> Java: 64bit/jdk1.7.0_25 -XX:+UseCompressedOops -XX:+UseParallelGC
>>>> 
>>>> 2 tests failed.
>>>> FAILED:  junit.framework.TestSuite.org.apache.solr.core.TestCoreContainer
>>>> 
>>>> Error Message:
>>>> Resource in scope SUITE failed to close. Resource was registered from 
>>>> thread Thread[id=3797, 
>>>> name=TEST-TestCoreContainer.testSharedLib-seed#[F464276E99DA04C5], 
>>>> state=RUNNABLE, group=TGRP-TestCoreContainer], registration stack trace 
>>>> below.
>>>> 
>>>> Stack Trace:
>>>> com.carrotsearch.randomizedtesting.ResourceDisposalError: Resource in 
>>>> scope SUITE failed to close. Resource was registered from thread 
>>>> Thread[id=3797, 
>>>> name=TEST-TestCoreContainer.testSharedLib-seed#[F464276E99DA04C5], 
>>>> state=RUNNABLE, group=TGRP-TestCoreContainer], registration stack trace 
>>>> below.
>>>>      at __randomizedtesting.SeedInfo.seed([F464276E99DA04C5]:0)
>>>>      at java.lang.Thread.getStackTrace(Thread.java:1568)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedContext.closeAtEnd(RandomizedContext.java:150)
>>>>      at 
>>>> org.apache.lucene.util.LuceneTestCase.closeAfterSuite(LuceneTestCase.java:545)
>>>>      at org.apache.lucene.util._TestUtil.getTempDir(_TestUtil.java:131)
>>>>      at 
>>>> org.apache.solr.core.TestCoreContainer.testSharedLib(TestCoreContainer.java:337)
>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>      at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>      at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51)
>>>>      at 
>>>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
>>>>      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:358)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53)
>>>>      at 
>>>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
>>>>      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 
>>>> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
>>>>      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:358)
>>>>      at java.lang.Thread.run(Thread.java:724)
>>>> Caused by: java.io.IOException: Could not remove: 
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\solr\build\solr-core\test\J0\.\testSharedLib4467544683tmp
>>>>      at org.apache.lucene.util.CloseableFile.close(CloseableFile.java:47)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$2$1.apply(RandomizedRunner.java:602)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$2$1.apply(RandomizedRunner.java:599)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedContext.closeResources(RandomizedContext.java:167)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$2.afterAlways(RandomizedRunner.java:615)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:43)
>>>>      ... 2 more
>>>> 
>>>> 
>>>> REGRESSION:  org.apache.solr.core.TestCoreDiscovery.testDuplicateNames
>>>> 
>>>> Error Message:
>>>> /core1 should have been mentioned in the message
>>>> 
>>>> Stack Trace:
>>>> java.lang.AssertionError: /core1 should have been mentioned in the message
>>>>      at 
>>>> __randomizedtesting.SeedInfo.seed([F464276E99DA04C5:F14975AC616F040]:0)
>>>>      at org.junit.Assert.fail(Assert.java:93)
>>>>      at org.junit.Assert.assertTrue(Assert.java:43)
>>>>      at 
>>>> org.apache.solr.core.TestCoreDiscovery.testDuplicateNames(TestCoreDiscovery.java:187)
>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>      at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>      at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51)
>>>>      at 
>>>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
>>>>      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:358)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53)
>>>>      at 
>>>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
>>>>      at 
>>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
>>>>      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 
>>>> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
>>>>      at 
>>>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
>>>>      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:358)
>>>>      at java.lang.Thread.run(Thread.java:724)
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Build Log:
>>>> [...truncated 12194 lines...]
>>>> BUILD FAILED
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\build.xml:386: 
>>>> The following error occurred while executing this line:
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\build.xml:366: 
>>>> The following error occurred while executing this line:
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\build.xml:39: 
>>>> The following error occurred while executing this line:
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\solr\build.xml:190:
>>>>  The following error occurred while executing this line:
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\solr\common-build.xml:443:
>>>>  The following error occurred while executing this line:
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\common-build.xml:1246:
>>>>  The following error occurred while executing this line:
>>>> C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\lucene\common-build.xml:890:
>>>>  There were test failures: 314 suites, 1324 tests, 1 suite-level error, 1 
>>>> failure, 39 ignored (11 assumptions)
>>>> 
>>>> Total time: 69 minutes 49 seconds
>>>> Build step 'Invoke Ant' marked build as failure
>>>> Description set: Java: 64bit/jdk1.7.0_25 -XX:+UseCompressedOops 
>>>> -XX:+UseParallelGC
>>>> Archiving artifacts
>>>> Recording test results
>>>> Email was triggered for: Failure
>>>> Sending email for trigger: Failure
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> 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]
>>> 
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> 

Reply via email to