Class UpgradeTask_Build800004

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

public class UpgradeTask_Build800004 extends AbstractReindexUpgradeTask
  • Constructor Details

    • UpgradeTask_Build800004

      public UpgradeTask_Build800004()
  • Method Details

    • getBuildNumber

      public int getBuildNumber()
      Returns:
      The build number that this upgrade is applicable to
    • 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.
    • getShortDescription

      public String getShortDescription()
      Description copied from interface: UpgradeTask
      A short (invalid input: '<'50 chars) description of the upgrade action
      Specified by:
      getShortDescription in interface UpgradeTask
      Specified by:
      getShortDescription in interface com.atlassian.upgrade.spi.UpgradeTask
      Overrides:
      getShortDescription in class AbstractReindexUpgradeTask
    • 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.