public class MigrateIndexTaskQueueToJournalUpgradeTask extends AbstractDeferredRunUpgradeTask implements DatabaseUpgradeTask
While this task will be run on only the first node. A subsequent upgrade
task (InitialiseIndexJournalStateUpgradeTask
) will be run on all
nodes in order to update their idea of which journal entries they need to
process.
Constructor and Description |
---|
MigrateIndexTaskQueueToJournalUpgradeTask(org.hibernate.SessionFactory sessionFactory,
HibernateJournalDao hibernateJournalDao,
ClusterConfigurationHelper clusterConfigurationHelper,
com.atlassian.core.util.Clock clock) |
Modifier and Type | Method and Description |
---|---|
boolean |
breaksBackwardCompatibility()
Returns true if a new export can't be imported in an older instance.
|
void |
doDeferredUpgrade()
Run the upgrade that was deferred by an earlier call to doUpgrade.
|
String |
getBuildNumber() |
boolean |
runOnSpaceImport()
Returns true if an older Space can't be imported in a new instance without running this task.
|
doUpgrade, isUpgradeRequired, setUpgradeRequired
addAllErrors, addError, addError, getConstraint, getErrors, getName, getShortDescription, isDatabaseUpgrade, setBeanName, setBuildNumber, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doUpgrade, getConstraint, getErrors, validate
getName, getShortDescription, isDatabaseUpgrade
public MigrateIndexTaskQueueToJournalUpgradeTask(org.hibernate.SessionFactory sessionFactory, HibernateJournalDao hibernateJournalDao, ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.core.util.Clock clock)
public boolean runOnSpaceImport()
BackupSupport
Note that tasks don't run on space import yet, so we just reject the import in this case.
runOnSpaceImport
in interface BackupSupport
public boolean breaksBackwardCompatibility()
BackupSupport
Breaking compatibility means a snapshot of the new version will not work at all with the previous version. For example:
breaksBackwardCompatibility
in interface BackupSupport
public void doDeferredUpgrade() throws Exception
DeferredUpgradeTask
doDeferredUpgrade
in interface DeferredUpgradeTask
Exception
public String getBuildNumber()
getBuildNumber
in interface UpgradeTaskInfo
getBuildNumber
in class AbstractUpgradeTask
Copyright © 2003–2020 Atlassian. All rights reserved.