public class DeleteTemporaryAttachmentUploadsUpgradeTask extends AbstractUpgradeTask
attachment-*.tmp files from java temp directory.
The system had a bug CONFSERVER-41622 when temporary attachment upload parts were stored to disk, but not removed. As a part of the fix during the upgrade we find and remove all such files to reclaim disk space.
log| Constructor and Description |
|---|
DeleteTemporaryAttachmentUploadsUpgradeTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
breaksBackwardCompatibility()
Returns true if a new export can't be imported in an older instance.
|
void |
doUpgrade()
Perform the upgrade.
|
String |
getBuildNumber() |
boolean |
runOnSpaceImport()
Returns true if an older Space can't be imported in a new instance without running this task.
|
addAllErrors, addError, addError, getConstraint, getErrors, getName, getShortDescription, isDatabaseUpgrade, setBeanName, setBuildNumber, validatepublic DeleteTemporaryAttachmentUploadsUpgradeTask()
public String getBuildNumber()
getBuildNumber in interface UpgradeTaskInfogetBuildNumber in class AbstractUpgradeTaskpublic void doUpgrade()
UpgradeTaskpublic boolean breaksBackwardCompatibility()
BackupSupportBreaking compatibility means a snapshot of the new version will not work at all with the previous version. For example:
public boolean runOnSpaceImport()
BackupSupport
Note that tasks don't run on space import yet, so we just reject the import in this case.
Copyright © 2003–2020 Atlassian. All rights reserved.