New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not serialize ApplicationContext creation in the TestContext framework [SPR-10536] #15166

Open
spring-issuemaster opened this Issue May 7, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

spring-issuemaster commented May 7, 2013

James Shaw opened SPR-10536 and commented

DefaultCacheAwareContextLoaderDelegate.loadContext() synchronizes access to the ContextCache which means that ApplicationContexts cannot be initialized in parallel.

I tried removing the ContextCache altogether, but this uncovered a deadlock in AbstractBeanFactory. Trying to fix that with a shared lock caused some race condition to autowire a null Environment into a @Configuration class' field.


Affects: 3.2.2

Issue Links:

  • #19400 No bean of type ConfigurableEnvironment in AbstractTestNGSpringContextTests
  • #17517 ApplicationContext fails to load in TestNG test if previous test is annotated with @DirtiesContext
  • #10532 Allow for concurrent test execution in the TestContext framework

1 votes, 3 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator

spring-issuemaster commented Oct 20, 2013

Sam Brannen commented

This issue is closely related to #10532.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment