Class UpgradeTask_Build900001

All Implemented Interfaces:
UpgradeTask, com.atlassian.upgrade.spi.UpgradeTask

public class UpgradeTask_Build900001 extends AbstractReindexUpgradeTask
This upgrade task forces full reindex after upgrade to Jira 9 to have guaranteed versions for all issues, comments, worklogs and change history entities.
Since:
9.0.0
  • Constructor Details

    • UpgradeTask_Build900001

      public UpgradeTask_Build900001()
  • Method Details

    • getBuildNumber

      public int getBuildNumber()
      Returns:
      The build number that this upgrade is applicable to
    • isDowngradeTaskRequired

      public boolean isDowngradeTaskRequired()
      Description copied from interface: UpgradeTask
      Flag to claim whether this upgrade task needs an explicit downgrade task to reverse the data changes in Jira-Server. Jira-Cloud always needs corresponding downgrade task.

      If a downgrade is a simple no-op then return false, and JIRA will ignore these changes during a downgrade.

      If you need to actually undo the changes made here then declare true and add a Downgrade Task to the bug fix branch.

      Returns:
      true if an actual Downgrade Task must run to revert these changes, false if downgrade is a no-op.
    • triggersFullReindex

      public boolean triggersFullReindex()
      Description copied from class: AbstractReindexUpgradeTask
      When this task is pending, returned value is used to determine if index startup flow should perform normal procedure to obtain index. If we change the directory for indexes, index startup flow performs full reindex. If we already triggering full reindex as part of this upgrade task the one from index startup flow is obsolete. To prevent double full reindex caused by index startup flow + upgrade task combination return true.
      Specified by:
      triggersFullReindex in class AbstractReindexUpgradeTask
      Returns:
      true if index startup flow should be skipped false if you want to perform index startup flow before this upgrade task.