Skip to content

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

Closed as not planned

Description

@spring-projects-issues

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:

1 votes, 3 watchers

Activity

  1. spring-projects-issues commented on Oct 20, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    This issue is closely related to #10532.

  2. added
    in: test
    type: enhancement
    on Jan 11, 2019
  3. self-assigned this
    on Jan 15, 2019
  4. changed the title [-]Do not serialize ApplicationContext creation in the TestContext framework [SPR-10536][/-] [+]Do not synchronize `ApplicationContext` creation in the TestContext framework [SPR-10536][/+] on Feb 24, 2023
  5. changed the title [-]Do not synchronize `ApplicationContext` creation in the TestContext framework [SPR-10536][/-] [+]Do not synchronize ApplicationContext creation in the TestContext framework [SPR-10536][/+] on Feb 14, 2024
  6. changed the title [-]Do not synchronize ApplicationContext creation in the TestContext framework [SPR-10536][/-] [+]Do not synchronize `ApplicationContext` creation in the TestContext framework [SPR-10536][/+] on Feb 14, 2024
  7. removed their assignment
    on Mar 8, 2024
  8. removed this from the General Backlog milestone on Mar 8, 2024
  9. added
    status: declined
    on Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: teststatus: declinedtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions