Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-5715

After migrating to a different database, session factories injected into spring beans still point to the old database.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.5.4, 2.6.0
    • 2.5.3
    • None
    • None

    Description

      The session factory we create at start up is exposed as a spring bean and is injected into (e.g.) org.springframework.orm.hibernate3.HibernateTransactionManager. When we discard this session factory after migrating databases the original session factory is still used by these beans, causing (e.g.) the plugins pages to try to start a transaction using the old DB.

      As a work around a restart after migration will ensure that the correct SessionFactory is used.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tom@atlassian.com Tom Davies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: