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 |
getDurationToRecoverUsingVersions()
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.
|
static final String SNAPSHOT_ARCHIVE
static final String INDEXSNAPSHOTS
IndexCommandResult recoverIndexFromBackup(File recoveryFile, TaskProgressSink taskProgressSink) throws IndexException
recoveryFile - The backup filetaskProgressSink - IndexException - If we are unable to recover the indexcom.atlassian.core.util.DateUtils.DateRange getDurationToRecoverUsingVersions()
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.IndexExceptionSearchExceptionIndexRecoveryResult deindexEntitiesDeletedInTheLast(java.time.Duration duration, TaskProgressSink taskProgressSink) throws IndexException
EntityVersioningManager)
See: VersioningDao
See: NodeReindexService
See: DefaultServerIndexRepairServiceduration - specifies how far back (from present time) to look for deleted issuestaskProgressSink - A progress sink.IndexExceptionCopyright © 2002-2022 Atlassian. All Rights Reserved.