public interface IndexRecoveryManager extends Sized
Modifier and Type | Field and Description |
---|---|
static String |
INDEXSNAPSHOTS |
static String |
SNAPSHOT_ARCHIVE |
Modifier and Type | Method and Description |
---|---|
IndexRecoveryResult |
deindexEntitiesDeletedInTheLast(java.time.Duration duration,
TaskProgressSink taskProgressSink)
Applies de-index based on the versioning table (delete column.*
Why this method may be needed?
It is possible in Jira (both server and DC) that a late "update" will override a "delete".
|
com.atlassian.core.util.DateUtils.DateRange |
getDurationToCatchUpUsingVersions()
Gets the updated date range for issues that need to be re-indexed because the latest updates are missing from the index.
|
IndexCommandResult |
recoverIndexFromBackup(File recoveryFile,
TaskProgressSink taskProgressSink)
Recovers an index from an index backup.
|
IndexRecoveryResult |
reindexWithVersionCheckEntitiesUpdatedInTheLast(java.time.Duration duration,
TaskProgressSink taskProgressSink)
This method uses versioning to short-circuit building documents when the index version is
already up-to-date with what's in the db.
|
IndexCommandResult |
safeRecoverIndexFromBackup(File recoveryFile,
TaskProgressSink taskProgressSink)
Recovers an index from an index backup.
|
static final String SNAPSHOT_ARCHIVE
static final String INDEXSNAPSHOTS
IndexCommandResult safeRecoverIndexFromBackup(File recoveryFile, TaskProgressSink taskProgressSink) throws IndexException
recoveryFile
- The backup filetaskProgressSink
- The sink to report progress back.IndexException
- If we are unable to recover the index or catch up after recovery is successfulIndexCommandResult recoverIndexFromBackup(File recoveryFile, TaskProgressSink taskProgressSink) throws IndexException
safeRecoverIndexFromBackup(java.io.File, com.atlassian.jira.task.TaskProgressSink)
this
method won't throw exception when not being able to to calculate the duration where catch up needs to be applied. It will skip the catch up
and continue with other steps.recoveryFile
- The backup filetaskProgressSink
- IndexException
- If we are unable to recover the index or catch up after recovery is successfulcom.atlassian.core.util.DateUtils.DateRange getDurationToCatchUpUsingVersions()
IndexRecoveryResult reindexWithVersionCheckEntitiesUpdatedInTheLast(java.time.Duration duration, TaskProgressSink taskProgressSink) throws IndexException, SearchException
duration
ago are up-to-date in the index.
They are reindexed/deindexed as needed to achieve this.duration
- specifies how far back (from present time) to look for updated issuestaskProgressSink
- A progress sink.IndexException
SearchException
IndexRecoveryResult deindexEntitiesDeletedInTheLast(java.time.Duration duration, TaskProgressSink taskProgressSink) throws IndexException
EntityVersioningManager
)
See: VersioningDao
See: NodeReindexService
See: DefaultServerIndexRepairService
duration
- specifies how far back (from present time) to look for deleted issuestaskProgressSink
- A progress sink.IndexException
Copyright © 2002-2024 Atlassian. All Rights Reserved.