Class UpgradeTask2191UpdateHsqlHibernateProperties

java.lang.Object
com.atlassian.crowd.upgrade.tasks.UpgradeTask2191UpdateHsqlHibernateProperties
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask2191UpdateHsqlHibernateProperties extends Object implements UpgradeTask
Upgrade task which migrates HSQL from MVCC transaction mode to read uncommitted transaction isolation level. This should fix deadlocks which occur when multiple concurrent requests are made to the database. Production instances are not expected to be affected as HSQL should be used in test contexts only.
Since:
6.2.0
  • Constructor Details

    • UpgradeTask2191UpdateHsqlHibernateProperties

      public UpgradeTask2191UpdateHsqlHibernateProperties(com.atlassian.config.internal.ApplicationConfig applicationConfig)
  • Method Details

    • getBuildNumber

      public int getBuildNumber()
      Specified by:
      getBuildNumber in interface UpgradeTask
      Returns:
      The build number that this upgrade is applicable to.
    • getShortDescription

      public String getShortDescription()
      Description copied from interface: UpgradeTask
      A short (less than 50 chars) description of the upgrade action
      Specified by:
      getShortDescription in interface UpgradeTask
      Returns:
      description of upgrade task.
    • doUpgrade

      public void doUpgrade() throws Exception
      Description copied from interface: UpgradeTask
      Perform the upgrade.
      Specified by:
      doUpgrade in interface UpgradeTask
      Throws:
      Exception - is thrown if any errors occur during the upgrade process.