Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1734

Delay Repositories initialization in DomainClassConverter

    XMLWordPrintable

    Details

      Description

      As reported here the initialization of Repositories during a call to DomainClassConverter.setApplicationContext(…) can cause deadlocks in the context of deferred infrastructure initialization. In the example given, the initialization of the Spring Data JPA MappingContext implementation tries to access the Metamodel provided by the EntityManagerFactory, currently in creation in a separate thread.

      We could delay that initialization until the first actual use of the converter to avoid this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              olivergierke Oliver Drotbohm
              Last updater:
              Mark Paluch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: