[
https://jira.codehaus.org/browse/MNG-4286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated MNG-4286:
-------------------------------
Fix Version/s: (was: Issues to be reviewed for 3.x)
> Possible race condition in DefaultWagonManagerTest.testGetWagonMultithreaded()
> ------------------------------------------------------------------------------
>
> Key: MNG-4286
> URL: https://jira.codehaus.org/browse/MNG-4286
> Project: Maven
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 2.2.1
> Reporter: John Casey
>
> Periodically (especially when I'm trying to stage a release, but that may
> just be Maven's sense of humor) I'm seeing test failures that seem to be due
> to a race condition in the tearDown() functionality of
> DefaultWagonManagerTest.testGetWagonMultithreaded():
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.maven.artifact.manager.DefaultWagonManagerTest
> -------------------------------------------------------------------------------
> Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.817 sec
> <<< FAILURE!
> testGetWagonMultithreaded(org.apache.maven.artifact.manager.DefaultWagonManagerTest)
> Time elapsed: 0.338 sec <<< ERROR!
> java.util.NoSuchElementException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:844)
> at java.util.HashMap$ValueIterator.next(HashMap.java:871)
> at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
> at java.util.ArrayList.<init>(ArrayList.java:136)
> at
> org.codehaus.plexus.DefaultPlexusContainer.disposeAllComponents(DefaultPlexusContainer.java:828)
> at
> org.codehaus.plexus.DefaultPlexusContainer.dispose(DefaultPlexusContainer.java:803)
> at org.codehaus.plexus.PlexusTestCase.tearDown(PlexusTestCase.java:160)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)