[Rename] refactor server/snapshots package. (#251)
Refactor `server/snapshots` to rename the package names from `org.elasticsearch.snapshots` to `org.opensearch.snapshots` as part of the rename to OpenSearch work. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
e1d4d27d3e
commit
991b3650b6
|
@ -26,7 +26,7 @@ import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -44,8 +44,8 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.repositories.fs.FsRepository;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.snapshots.RestoreInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.RestoreInfo;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -54,11 +54,11 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.repositories.fs.FsRepository;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.snapshots.RestoreInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotShardFailure;
|
||||
import org.elasticsearch.snapshots.SnapshotState;
|
||||
import org.opensearch.snapshots.RestoreInfo;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotShardFailure;
|
||||
import org.opensearch.snapshots.SnapshotState;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.unit.ByteSizeUnit;
|
|||
import org.opensearch.plugin.repository.url.URLRepositoryPlugin;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.repositories.fs.FsRepository;
|
||||
import org.elasticsearch.snapshots.SnapshotState;
|
||||
import org.opensearch.snapshots.SnapshotState;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.elasticsearch.repositories.RepositoriesService;
|
|||
import org.elasticsearch.repositories.RepositoryException;
|
||||
import org.elasticsearch.repositories.blobstore.BlobStoreRepository;
|
||||
import org.elasticsearch.repositories.blobstore.BlobStoreTestUtil;
|
||||
import org.elasticsearch.snapshots.SnapshotState;
|
||||
import org.opensearch.snapshots.SnapshotState;
|
||||
import org.elasticsearch.test.ESSingleNodeTestCase;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
|
||||
|
|
|
@ -46,9 +46,9 @@ import org.elasticsearch.repositories.RepositoriesService;
|
|||
import org.elasticsearch.repositories.RepositoryData;
|
||||
import org.elasticsearch.repositories.blobstore.BlobStoreRepository;
|
||||
import org.elasticsearch.repositories.blobstore.ESMockAPIBasedRepositoryIntegTestCase;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.snapshots.mockstore.BlobStoreWrapper;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.mockstore.BlobStoreWrapper;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
|
||||
|
|
|
@ -45,9 +45,9 @@ import org.elasticsearch.repositories.RepositoryData;
|
|||
import org.elasticsearch.repositories.RepositoryException;
|
||||
import org.elasticsearch.repositories.ShardGenerations;
|
||||
import org.elasticsearch.repositories.blobstore.MeteredBlobStoreRepository;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.Scheduler;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
|
||||
|
@ -163,7 +163,7 @@ class S3Repository extends MeteredBlobStoreRepository {
|
|||
/**
|
||||
* Artificial delay to introduce after a snapshot finalization or delete has finished so long as the repository is still using the
|
||||
* backwards compatible snapshot format from before
|
||||
* {@link org.elasticsearch.snapshots.SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION} ({@link org.elasticsearch.Version#V_7_6_0}).
|
||||
* {@link org.opensearch.snapshots.SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION} ({@link org.elasticsearch.Version#V_7_6_0}).
|
||||
* This delay is necessary so that the eventually consistent nature of AWS S3 does not randomly result in repository corruption when
|
||||
* doing repository operations in rapid succession on a repository in the old metadata format.
|
||||
* This setting should not be adjusted in production when working with an AWS S3 backed repository. Doing so risks the repository
|
||||
|
|
|
@ -784,13 +784,13 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
GENERAL_SCRIPT_EXCEPTION(org.elasticsearch.script.GeneralScriptException.class,
|
||||
org.elasticsearch.script.GeneralScriptException::new, 25, UNKNOWN_VERSION_ADDED),
|
||||
// 26 was BatchOperationException
|
||||
SNAPSHOT_CREATION_EXCEPTION(org.elasticsearch.snapshots.SnapshotCreationException.class,
|
||||
org.elasticsearch.snapshots.SnapshotCreationException::new, 27, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_CREATION_EXCEPTION(org.opensearch.snapshots.SnapshotCreationException.class,
|
||||
org.opensearch.snapshots.SnapshotCreationException::new, 27, UNKNOWN_VERSION_ADDED),
|
||||
// 28 was DeleteFailedEngineException, deprecated in 6.0, removed in 7.0
|
||||
DOCUMENT_MISSING_EXCEPTION(org.elasticsearch.index.engine.DocumentMissingException.class,
|
||||
org.elasticsearch.index.engine.DocumentMissingException::new, 29, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_EXCEPTION(org.elasticsearch.snapshots.SnapshotException.class,
|
||||
org.elasticsearch.snapshots.SnapshotException::new, 30, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_EXCEPTION(org.opensearch.snapshots.SnapshotException.class,
|
||||
org.opensearch.snapshots.SnapshotException::new, 30, UNKNOWN_VERSION_ADDED),
|
||||
INVALID_ALIAS_NAME_EXCEPTION(org.elasticsearch.indices.InvalidAliasNameException.class,
|
||||
org.elasticsearch.indices.InvalidAliasNameException::new, 31, UNKNOWN_VERSION_ADDED),
|
||||
INVALID_INDEX_NAME_EXCEPTION(org.elasticsearch.indices.InvalidIndexNameException.class,
|
||||
|
@ -807,8 +807,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
org.elasticsearch.index.mapper.MapperException::new, 37, UNKNOWN_VERSION_ADDED),
|
||||
INVALID_TYPE_NAME_EXCEPTION(org.elasticsearch.indices.InvalidTypeNameException.class,
|
||||
org.elasticsearch.indices.InvalidTypeNameException::new, 38, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_RESTORE_EXCEPTION(org.elasticsearch.snapshots.SnapshotRestoreException.class,
|
||||
org.elasticsearch.snapshots.SnapshotRestoreException::new, 39, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_RESTORE_EXCEPTION(org.opensearch.snapshots.SnapshotRestoreException.class,
|
||||
org.opensearch.snapshots.SnapshotRestoreException::new, 39, UNKNOWN_VERSION_ADDED),
|
||||
PARSING_EXCEPTION(org.elasticsearch.common.ParsingException.class, org.elasticsearch.common.ParsingException::new, 40,
|
||||
UNKNOWN_VERSION_ADDED),
|
||||
INDEX_SHARD_CLOSED_EXCEPTION(org.elasticsearch.index.shard.IndexShardClosedException.class,
|
||||
|
@ -859,16 +859,16 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
HTTP_EXCEPTION(org.elasticsearch.http.HttpException.class, org.elasticsearch.http.HttpException::new, 67, UNKNOWN_VERSION_ADDED),
|
||||
ELASTICSEARCH_EXCEPTION(OpenSearchException.class,
|
||||
OpenSearchException::new, 68, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_MISSING_EXCEPTION(org.elasticsearch.snapshots.SnapshotMissingException.class,
|
||||
org.elasticsearch.snapshots.SnapshotMissingException::new, 69, UNKNOWN_VERSION_ADDED),
|
||||
SNAPSHOT_MISSING_EXCEPTION(org.opensearch.snapshots.SnapshotMissingException.class,
|
||||
org.opensearch.snapshots.SnapshotMissingException::new, 69, UNKNOWN_VERSION_ADDED),
|
||||
PRIMARY_MISSING_ACTION_EXCEPTION(org.opensearch.action.PrimaryMissingActionException.class,
|
||||
org.opensearch.action.PrimaryMissingActionException::new, 70, UNKNOWN_VERSION_ADDED),
|
||||
FAILED_NODE_EXCEPTION(org.opensearch.action.FailedNodeException.class, org.opensearch.action.FailedNodeException::new, 71,
|
||||
UNKNOWN_VERSION_ADDED),
|
||||
SEARCH_PARSE_EXCEPTION(org.elasticsearch.search.SearchParseException.class, org.elasticsearch.search.SearchParseException::new, 72,
|
||||
UNKNOWN_VERSION_ADDED),
|
||||
CONCURRENT_SNAPSHOT_EXECUTION_EXCEPTION(org.elasticsearch.snapshots.ConcurrentSnapshotExecutionException.class,
|
||||
org.elasticsearch.snapshots.ConcurrentSnapshotExecutionException::new, 73, UNKNOWN_VERSION_ADDED),
|
||||
CONCURRENT_SNAPSHOT_EXECUTION_EXCEPTION(org.opensearch.snapshots.ConcurrentSnapshotExecutionException.class,
|
||||
org.opensearch.snapshots.ConcurrentSnapshotExecutionException::new, 73, UNKNOWN_VERSION_ADDED),
|
||||
BLOB_STORE_EXCEPTION(org.elasticsearch.common.blobstore.BlobStoreException.class,
|
||||
org.elasticsearch.common.blobstore.BlobStoreException::new, 74, UNKNOWN_VERSION_ADDED),
|
||||
INCOMPATIBLE_CLUSTER_STATE_VERSION_EXCEPTION(org.elasticsearch.cluster.IncompatibleClusterStateVersionException.class,
|
||||
|
@ -905,8 +905,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
// 93 used to be for IndexWarmerMissingException
|
||||
NO_NODE_AVAILABLE_EXCEPTION(org.elasticsearch.client.transport.NoNodeAvailableException.class,
|
||||
org.elasticsearch.client.transport.NoNodeAvailableException::new, 94, UNKNOWN_VERSION_ADDED),
|
||||
INVALID_SNAPSHOT_NAME_EXCEPTION(org.elasticsearch.snapshots.InvalidSnapshotNameException.class,
|
||||
org.elasticsearch.snapshots.InvalidSnapshotNameException::new, 96, UNKNOWN_VERSION_ADDED),
|
||||
INVALID_SNAPSHOT_NAME_EXCEPTION(org.opensearch.snapshots.InvalidSnapshotNameException.class,
|
||||
org.opensearch.snapshots.InvalidSnapshotNameException::new, 96, UNKNOWN_VERSION_ADDED),
|
||||
ILLEGAL_INDEX_SHARD_STATE_EXCEPTION(org.elasticsearch.index.shard.IllegalIndexShardStateException.class,
|
||||
org.elasticsearch.index.shard.IllegalIndexShardStateException::new, 97, UNKNOWN_VERSION_ADDED),
|
||||
INDEX_SHARD_SNAPSHOT_EXCEPTION(org.elasticsearch.index.snapshots.IndexShardSnapshotException.class,
|
||||
|
@ -1004,8 +1004,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
MultiBucketConsumerService.TooManyBucketsException::new, 149, Version.V_6_2_0),
|
||||
COORDINATION_STATE_REJECTED_EXCEPTION(org.elasticsearch.cluster.coordination.CoordinationStateRejectedException.class,
|
||||
org.elasticsearch.cluster.coordination.CoordinationStateRejectedException::new, 150, Version.V_7_0_0),
|
||||
SNAPSHOT_IN_PROGRESS_EXCEPTION(org.elasticsearch.snapshots.SnapshotInProgressException.class,
|
||||
org.elasticsearch.snapshots.SnapshotInProgressException::new, 151, Version.V_6_7_0),
|
||||
SNAPSHOT_IN_PROGRESS_EXCEPTION(org.opensearch.snapshots.SnapshotInProgressException.class,
|
||||
org.opensearch.snapshots.SnapshotInProgressException::new, 151, Version.V_6_7_0),
|
||||
NO_SUCH_REMOTE_CLUSTER_EXCEPTION(org.elasticsearch.transport.NoSuchRemoteClusterException.class,
|
||||
org.elasticsearch.transport.NoSuchRemoteClusterException::new, 152, Version.V_6_7_0),
|
||||
RETENTION_LEASE_ALREADY_EXISTS_EXCEPTION(
|
||||
|
|
|
@ -77,7 +77,7 @@ import org.elasticsearch.persistent.PersistentTasksCustomMetadata;
|
|||
import org.elasticsearch.persistent.PersistentTasksNodeService;
|
||||
import org.elasticsearch.plugins.ClusterPlugin;
|
||||
import org.elasticsearch.script.ScriptMetadata;
|
||||
import org.elasticsearch.snapshots.SnapshotsInfoService;
|
||||
import org.opensearch.snapshots.SnapshotsInfoService;
|
||||
import org.elasticsearch.tasks.Task;
|
||||
import org.elasticsearch.tasks.TaskResultsService;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.elasticsearch.common.io.stream.Writeable;
|
|||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -29,9 +29,9 @@ import org.elasticsearch.common.io.stream.Writeable;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.repositories.RepositoryOperation;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -37,10 +37,10 @@ import org.elasticsearch.index.shard.ShardId;
|
|||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.repositories.RepositoryShardId;
|
||||
import org.elasticsearch.repositories.RepositoryOperation;
|
||||
import org.elasticsearch.snapshots.InFlightShardSnapshotStates;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.InFlightShardSnapshotStates;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
@ -52,9 +52,9 @@ import java.util.Objects;
|
|||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.elasticsearch.snapshots.SnapshotInfo.METADATA_FIELD_INTRODUCED;
|
||||
import static org.opensearch.snapshots.SnapshotInfo.METADATA_FIELD_INTRODUCED;
|
||||
|
||||
import static org.elasticsearch.snapshots.SnapshotInfo.DATA_STREAMS_IN_SNAPSHOT;
|
||||
import static org.opensearch.snapshots.SnapshotInfo.DATA_STREAMS_IN_SNAPSHOT;
|
||||
|
||||
/**
|
||||
* Meta data about snapshots that are currently executing
|
||||
|
|
|
@ -37,9 +37,9 @@ import org.elasticsearch.common.inject.Inject;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.snapshots.RestoreService;
|
||||
import org.elasticsearch.snapshots.SnapshotInProgressException;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.RestoreService;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -73,9 +73,9 @@ import org.elasticsearch.index.shard.ShardId;
|
|||
import org.elasticsearch.indices.IndicesService;
|
||||
import org.elasticsearch.indices.ShardLimitValidator;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.snapshots.RestoreService;
|
||||
import org.elasticsearch.snapshots.SnapshotInProgressException;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.RestoreService;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.tasks.TaskId;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.xcontent.ToXContent;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.Decision;
|
|||
import org.elasticsearch.common.collect.ImmutableOpenMap;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.elasticsearch.gateway.PriorityComparator;
|
||||
import org.elasticsearch.snapshots.SnapshotsInfoService;
|
||||
import org.opensearch.snapshots.SnapshotsInfoService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -32,8 +32,8 @@ import org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders;
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.Decision;
|
||||
import org.elasticsearch.common.collect.ImmutableOpenMap;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.RestoreService.RestoreInProgressUpdater;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.RestoreService.RestoreInProgressUpdater;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -116,8 +116,8 @@ import org.elasticsearch.search.SearchModule;
|
|||
import org.elasticsearch.search.SearchService;
|
||||
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.FastVectorHighlighter;
|
||||
import org.elasticsearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.ProxyConnectionStrategy;
|
||||
import org.elasticsearch.transport.RemoteClusterService;
|
||||
|
|
|
@ -70,7 +70,7 @@ import org.elasticsearch.indices.recovery.RecoveryFailedException;
|
|||
import org.elasticsearch.indices.recovery.RecoveryState;
|
||||
import org.elasticsearch.repositories.RepositoriesService;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.elasticsearch.snapshots.SnapshotShardsService;
|
||||
import org.opensearch.snapshots.SnapshotShardsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -161,11 +161,11 @@ import org.elasticsearch.search.SearchModule;
|
|||
import org.elasticsearch.search.SearchService;
|
||||
import org.elasticsearch.search.aggregations.support.AggregationUsageService;
|
||||
import org.elasticsearch.search.fetch.FetchPhase;
|
||||
import org.elasticsearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.RestoreService;
|
||||
import org.elasticsearch.snapshots.SnapshotShardsService;
|
||||
import org.elasticsearch.snapshots.SnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.opensearch.snapshots.RestoreService;
|
||||
import org.opensearch.snapshots.SnapshotShardsService;
|
||||
import org.opensearch.snapshots.SnapshotsInfoService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.tasks.Task;
|
||||
import org.elasticsearch.tasks.TaskCancellationService;
|
||||
import org.elasticsearch.tasks.TaskResultsService;
|
||||
|
|
|
@ -34,8 +34,8 @@ import org.elasticsearch.index.shard.ShardId;
|
|||
import org.elasticsearch.index.snapshots.IndexShardSnapshotStatus;
|
||||
import org.elasticsearch.index.store.Store;
|
||||
import org.elasticsearch.indices.recovery.RecoveryState;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
|
|
|
@ -21,7 +21,8 @@ package org.elasticsearch.repositories;
|
|||
|
||||
import org.elasticsearch.cluster.metadata.IndexMetadata;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
@ -79,7 +80,7 @@ public final class IndexMetaDataGenerations {
|
|||
/**
|
||||
* Get the blob id by {@link SnapshotId} and {@link IndexId} and fall back to the value of {@link SnapshotId#getUUID()} if none is
|
||||
* known to enable backwards compatibility with versions older than
|
||||
* {@link org.elasticsearch.snapshots.SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION} which used the snapshot uuid as index metadata
|
||||
* {@link org.opensearch.snapshots.SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION} which used the snapshot uuid as index metadata
|
||||
* blob uuid.
|
||||
*
|
||||
* @param snapshotId Snapshot Id
|
||||
|
|
|
@ -35,8 +35,8 @@ import org.elasticsearch.index.shard.ShardId;
|
|||
import org.elasticsearch.index.snapshots.IndexShardSnapshotStatus;
|
||||
import org.elasticsearch.index.store.Store;
|
||||
import org.elasticsearch.indices.recovery.RecoveryState;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
|
@ -122,7 +122,7 @@ public interface Repository extends LifecycleComponent {
|
|||
* @param metadata cluster metadata
|
||||
*
|
||||
* @deprecated this method is only used when taking snapshots in a mixed version cluster where a master node older than
|
||||
* {@link org.elasticsearch.snapshots.SnapshotsService#NO_REPO_INITIALIZE_VERSION} is present.
|
||||
* {@link org.opensearch.snapshots.SnapshotsService#NO_REPO_INITIALIZE_VERSION} is present.
|
||||
*/
|
||||
@Deprecated
|
||||
void initializeSnapshot(SnapshotId snapshotId, List<IndexId> indices, Metadata metadata);
|
||||
|
|
|
@ -27,9 +27,9 @@ import org.elasticsearch.common.UUIDs;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentParserUtils;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotState;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotState;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -127,7 +127,7 @@ public final class ShardGenerations {
|
|||
* <li>{@link #DELETED_SHARD_GEN} a deleted shard that isn't referenced by any snapshot in the repository any longer</li>
|
||||
* <li>{@link #NEW_SHARD_GEN} a new shard that we know doesn't hold any valid data yet in the repository</li>
|
||||
* <li>{@code null} unknown state. The shard either does not exist at all or it was created by a node older than
|
||||
* {@link org.elasticsearch.snapshots.SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION}. If a caller expects a shard to exist in the
|
||||
* {@link org.opensearch.snapshots.SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION}. If a caller expects a shard to exist in the
|
||||
* repository but sees a {@code null} return, it should try to recover the generation by falling back to listing the contents
|
||||
* of the respective shard directory.</li>
|
||||
* </ul>
|
||||
|
|
|
@ -108,14 +108,14 @@ import org.elasticsearch.repositories.RepositoryOperation;
|
|||
import org.elasticsearch.repositories.RepositoryShardId;
|
||||
import org.elasticsearch.repositories.RepositoryStats;
|
||||
import org.elasticsearch.repositories.RepositoryVerificationException;
|
||||
import org.elasticsearch.snapshots.SnapshotCreationException;
|
||||
import org.opensearch.snapshots.SnapshotCreationException;
|
||||
import org.elasticsearch.repositories.ShardGenerations;
|
||||
import org.elasticsearch.snapshots.AbortedSnapshotException;
|
||||
import org.elasticsearch.snapshots.SnapshotException;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotMissingException;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.AbortedSnapshotException;
|
||||
import org.opensearch.snapshots.SnapshotException;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotMissingException;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
|
||||
import java.io.FilterInputStream;
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.elasticsearch.common.xcontent.XContentHelper;
|
|||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.gateway.CorruptStateException;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.elasticsearch.index.snapshots.blobstore.SnapshotFiles;
|
|||
import org.elasticsearch.index.store.Store;
|
||||
import org.elasticsearch.index.store.StoreFileMetadata;
|
||||
import org.elasticsearch.indices.recovery.RecoveryState;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -48,10 +48,10 @@
|
|||
* | and the indices belonging to each snapshot, N is the generation of the file
|
||||
* |- index.latest - contains the numeric value of the latest generation of the index file (i.e. N from above)
|
||||
* |- incompatible-snapshots - list of all snapshot ids that are no longer compatible with the current version of the cluster
|
||||
* |- snap-20131010.dat - SMILE serialized {@link org.elasticsearch.snapshots.SnapshotInfo} for snapshot "20131010"
|
||||
* |- snap-20131010.dat - SMILE serialized {@link org.opensearch.snapshots.SnapshotInfo } for snapshot "20131010"
|
||||
* |- meta-20131010.dat - SMILE serialized {@link org.elasticsearch.cluster.metadata.Metadata} for snapshot "20131010"
|
||||
* | (includes only global metadata)
|
||||
* |- snap-20131011.dat - SMILE serialized {@link org.elasticsearch.snapshots.SnapshotInfo} for snapshot "20131011"
|
||||
* |- snap-20131011.dat - SMILE serialized {@link org.opensearch.snapshots.SnapshotInfo } for snapshot "20131011"
|
||||
* |- meta-20131011.dat - SMILE serialized {@link org.elasticsearch.cluster.metadata.Metadata} for snapshot "20131011"
|
||||
* .....
|
||||
* |- indices/ - data for all indices
|
||||
|
@ -158,7 +158,7 @@
|
|||
* <h3>Initializing a Snapshot in the Repository (Mixed Version Clusters only)</h3>
|
||||
*
|
||||
* <p>In mixed version clusters that contain a node older than
|
||||
* {@link org.elasticsearch.snapshots.SnapshotsService#NO_REPO_INITIALIZE_VERSION}, creating a snapshot in the repository starts with a
|
||||
* {@link org.opensearch.snapshots.SnapshotsService#NO_REPO_INITIALIZE_VERSION}, creating a snapshot in the repository starts with a
|
||||
* call to {@link org.elasticsearch.repositories.Repository#initializeSnapshot} which the blob store repository implements via the
|
||||
* following actions:</p>
|
||||
* <ol>
|
||||
|
@ -207,7 +207,7 @@
|
|||
* <li>Write a blob containing the cluster metadata to the root of the blob store repository at {@code /meta-${snapshot-uuid}.dat}</li>
|
||||
* <li>Write the metadata for each index to a blob in that index's directory at
|
||||
* {@code /indices/${index-snapshot-uuid}/meta-${snapshot-uuid}.dat}</li>
|
||||
* <li>Write the {@link org.elasticsearch.snapshots.SnapshotInfo} blob for the given snapshot to the key {@code /snap-${snapshot-uuid}.dat}
|
||||
* <li>Write the {@link org.opensearch.snapshots.SnapshotInfo} blob for the given snapshot to the key {@code /snap-${snapshot-uuid}.dat}
|
||||
* directly under the repository root.</li>
|
||||
* <li>Write an updated {@code RepositoryData} blob containing the new snapshot.</li>
|
||||
* </ol>
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders;
|
|||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.snapshots.SnapshotsInfoService;
|
||||
import org.opensearch.snapshots.SnapshotsInfoService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.elasticsearch.repositories.Repository;
|
|||
import org.elasticsearch.repositories.RepositoryCleanupResult;
|
||||
import org.elasticsearch.repositories.RepositoryData;
|
||||
import org.elasticsearch.repositories.blobstore.BlobStoreRepository;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
|||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ import static org.elasticsearch.common.settings.Settings.Builder.EMPTY_SETTINGS;
|
|||
import static org.elasticsearch.common.settings.Settings.readSettingsFromStream;
|
||||
import static org.elasticsearch.common.settings.Settings.writeSettingsToStream;
|
||||
import static org.elasticsearch.common.xcontent.support.XContentMapValues.nodeBooleanValue;
|
||||
import static org.elasticsearch.snapshots.SnapshotInfo.METADATA_FIELD_INTRODUCED;
|
||||
import static org.opensearch.snapshots.SnapshotInfo.METADATA_FIELD_INTRODUCED;
|
||||
|
||||
/**
|
||||
* Create snapshot request
|
||||
|
|
|
@ -29,8 +29,8 @@ import org.elasticsearch.common.xcontent.ToXContentObject;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo.SnapshotInfoBuilder;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotInfo.SnapshotInfoBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
|||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.ActionRequestValidationException;
|
|||
import org.elasticsearch.action.support.master.MasterNodeRequest;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
|||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.xcontent.ToXContent;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -41,11 +41,11 @@ import org.elasticsearch.repositories.IndexId;
|
|||
import org.elasticsearch.repositories.RepositoriesService;
|
||||
import org.elasticsearch.repositories.Repository;
|
||||
import org.elasticsearch.repositories.RepositoryData;
|
||||
import org.elasticsearch.snapshots.SnapshotException;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotMissingException;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotException;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotMissingException;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -28,10 +28,10 @@ import org.elasticsearch.cluster.RestoreInProgress;
|
|||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.collect.ImmutableOpenMap;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.RestoreInfo;
|
||||
import org.elasticsearch.snapshots.RestoreService;
|
||||
import org.opensearch.snapshots.RestoreInfo;
|
||||
import org.opensearch.snapshots.RestoreService;
|
||||
|
||||
import static org.elasticsearch.snapshots.RestoreService.restoreInProgress;
|
||||
import static org.opensearch.snapshots.RestoreService.restoreInProgress;
|
||||
|
||||
public class RestoreClusterStateListener implements ClusterStateListener {
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.elasticsearch.common.xcontent.ToXContentObject;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.snapshots.RestoreInfo;
|
||||
import org.opensearch.snapshots.RestoreInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
|||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.snapshots.RestoreService;
|
||||
import org.opensearch.snapshots.RestoreService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ import org.elasticsearch.common.xcontent.ObjectParser;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -35,8 +35,8 @@ import org.elasticsearch.common.io.stream.StreamInput;
|
|||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.index.snapshots.IndexShardSnapshotStatus;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotShardsService;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotShardsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -46,14 +46,14 @@ import org.elasticsearch.repositories.IndexId;
|
|||
import org.elasticsearch.repositories.RepositoriesService;
|
||||
import org.elasticsearch.repositories.Repository;
|
||||
import org.elasticsearch.repositories.RepositoryData;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotMissingException;
|
||||
import org.elasticsearch.snapshots.SnapshotShardFailure;
|
||||
import org.elasticsearch.snapshots.SnapshotShardsService;
|
||||
import org.elasticsearch.snapshots.SnapshotState;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotMissingException;
|
||||
import org.opensearch.snapshots.SnapshotShardFailure;
|
||||
import org.opensearch.snapshots.SnapshotShardsService;
|
||||
import org.opensearch.snapshots.SnapshotState;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -47,8 +47,8 @@ import org.elasticsearch.common.regex.Regex;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.snapshots.SnapshotInProgressException;
|
||||
import org.elasticsearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
import org.opensearch.rest.RestRequest;
|
||||
import org.opensearch.rest.RestResponse;
|
||||
import org.opensearch.rest.action.RestResponseListener;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotState;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotState;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneOffset;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
public final class AbortedSnapshotException extends RuntimeException {
|
||||
public AbortedSnapshotException() {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.rest.RestStatus;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.collect.ImmutableOpenMap;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
||||
import org.elasticsearch.cluster.SnapshotsInProgress;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import com.carrotsearch.hppc.cursors.ObjectCursor;
|
||||
import org.apache.logging.log4j.LogManager;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.rest.RestStatus;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.Strings;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import com.carrotsearch.hppc.IntHashSet;
|
||||
import com.carrotsearch.hppc.IntSet;
|
||||
|
@ -101,7 +101,7 @@ import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_NUMBER_OF
|
|||
import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_VERSION_CREATED;
|
||||
import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_VERSION_UPGRADED;
|
||||
import static org.elasticsearch.common.util.set.Sets.newHashSet;
|
||||
import static org.elasticsearch.snapshots.SnapshotUtils.filterIndices;
|
||||
import static org.opensearch.snapshots.SnapshotUtils.filterIndices;
|
||||
|
||||
/**
|
||||
* Service responsible for restoring snapshots
|
||||
|
@ -928,7 +928,7 @@ public class RestoreService implements ClusterStateApplier {
|
|||
}
|
||||
if (Version.CURRENT.before(snapshotInfo.version())) {
|
||||
throw new SnapshotRestoreException(new Snapshot(repository, snapshotInfo.snapshotId()),
|
||||
"the snapshot was created with Elasticsearch version [" + snapshotInfo.version() +
|
||||
"the snapshot was created with OpenSearch version [" + snapshotInfo.version() +
|
||||
"] which is higher than the version of this node [" + Version.CURRENT + "]");
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.OpenSearchException;
|
||||
import org.elasticsearch.common.Nullable;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.OpenSearchException;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.Version;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.rest.RestStatus;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.OpenSearchParseException;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.cluster.routing.RecoverySource;
|
||||
import org.elasticsearch.cluster.routing.ShardRouting;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
@ -72,7 +72,7 @@ import static java.util.Collections.emptyMap;
|
|||
/**
|
||||
* This service runs on data nodes and controls currently running shard snapshots on these nodes. It is responsible for
|
||||
* starting and stopping shard level snapshots.
|
||||
* See package level documentation of {@link org.elasticsearch.snapshots} for details.
|
||||
* See package level documentation of {@link org.opensearch.snapshots} for details.
|
||||
*/
|
||||
public class SnapshotShardsService extends AbstractLifecycleComponent implements ClusterStateListener, IndexEventListener {
|
||||
private static final Logger logger = LogManager.getLogger(SnapshotShardsService.class);
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
|
||||
/**
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.elasticsearch.action.support.IndicesOptions;
|
||||
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface SnapshotsInfoService {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import com.carrotsearch.hppc.cursors.ObjectCursor;
|
||||
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
||||
|
@ -122,7 +122,7 @@ import static org.elasticsearch.cluster.SnapshotsInProgress.completed;
|
|||
/**
|
||||
* Service responsible for creating snapshots. This service runs all the steps executed on the master node during snapshot creation and
|
||||
* deletion.
|
||||
* See package level documentation of {@link org.elasticsearch.snapshots} for details.
|
||||
* See package level documentation of {@link org.opensearch.snapshots} for details.
|
||||
*/
|
||||
public class SnapshotsService extends AbstractLifecycleComponent implements ClusterStateApplier {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.opensearch.action.ActionRequestValidationException;
|
||||
import org.elasticsearch.action.support.master.MasterNodeRequest;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
||||
|
||||
import org.opensearch.action.ActionResponse;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* <p>This package exposes the Elasticsearch Snapshot functionality.</p>
|
||||
* <p>This package exposes the OpenSearch Snapshot functionality.</p>
|
||||
*
|
||||
* <h2>Preliminaries</h2>
|
||||
*
|
||||
|
@ -28,14 +28,14 @@
|
|||
* {@link org.elasticsearch.cluster.SnapshotsInProgress}. All nodes consume the state of the {@code SnapshotsInProgress} and will start or
|
||||
* abort relevant shard snapshot tasks accordingly.</li>
|
||||
* <li>Nodes that are executing shard snapshot tasks report either success or failure of their snapshot task by submitting a
|
||||
* {@link org.elasticsearch.snapshots.UpdateIndexShardSnapshotStatusRequest} to the master node that will update the
|
||||
* {@link org.opensearch.snapshots.UpdateIndexShardSnapshotStatusRequest} to the master node that will update the
|
||||
* snapshot's entry in the cluster state accordingly.</li>
|
||||
* </ul>
|
||||
*
|
||||
* <h2>Snapshot Creation</h2>
|
||||
* <p>Snapshots are created by the following sequence of events:</p>
|
||||
* <ol>
|
||||
* <li>First the {@link org.elasticsearch.snapshots.SnapshotsService} determines the primary shards' assignments for all indices that are
|
||||
* <li>First the {@link org.opensearch.snapshots.SnapshotsService} determines the primary shards' assignments for all indices that are
|
||||
* being snapshotted and creates a {@code SnapshotsInProgress.Entry} with state {@code STARTED} and adds the map of
|
||||
* {@link org.elasticsearch.index.shard.ShardId} to {@link org.elasticsearch.cluster.SnapshotsInProgress.ShardSnapshotStatus} that tracks
|
||||
* the assignment of which node is to snapshot which shard. All shard snapshots are executed on the shard's primary node. Thus all shards
|
||||
|
@ -45,7 +45,7 @@
|
|||
* created and thus been assigned to a specific cluster node, that shard's snapshot will fail and move to state {@code FAILED}.</li>
|
||||
*
|
||||
* <li>The new {@code SnapshotsInProgress.Entry} is then observed by
|
||||
* {@link org.elasticsearch.snapshots.SnapshotShardsService#clusterChanged} on all nodes and since the entry is in state {@code STARTED}
|
||||
* {@link org.opensearch.snapshots.SnapshotShardsService#clusterChanged} on all nodes and since the entry is in state {@code STARTED}
|
||||
* the {@code SnapshotShardsService} will check if any local primary shards are to be snapshotted (signaled by the shard's snapshot state
|
||||
* being {@code INIT}). For those local primary shards found in state {@code INIT}) the snapshot process of writing the shard's data files
|
||||
* to the snapshot's {@link org.elasticsearch.repositories.Repository} is executed. Once the snapshot execution finishes for a shard an
|
||||
|
@ -55,7 +55,7 @@
|
|||
*
|
||||
* <li>If as a result of the received status update requests, all shards in the cluster state are in a completed state, i.e are marked as
|
||||
* either {@code SUCCESS}, {@code FAILED} or {@code MISSING}, the {@code SnapshotShardsService} will update the state of the {@code Entry}
|
||||
* itself and mark it as {@code SUCCESS}. At the same time {@link org.elasticsearch.snapshots.SnapshotsService#endSnapshot} is executed,
|
||||
* itself and mark it as {@code SUCCESS}. At the same time {@link org.opensearch.snapshots.SnapshotsService#endSnapshot} is executed,
|
||||
* writing the metadata necessary to finalize the snapshot in the repository to the repository.</li>
|
||||
*
|
||||
* <li>After writing the final metadata to the repository, a cluster state update to remove the snapshot from the cluster state is
|
||||
|
@ -107,7 +107,7 @@
|
|||
* be finalized. Concretely, it is executed as follows:</p>
|
||||
*
|
||||
* <ol>
|
||||
* <li>First, {@link org.elasticsearch.snapshots.SnapshotsService#cloneSnapshot} is invoked which will place a placeholder entry into
|
||||
* <li>First, {@link org.opensearch.snapshots.SnapshotsService#cloneSnapshot} is invoked which will place a placeholder entry into
|
||||
* {@code SnapshotsInProgress} that does not yet contain any shard clone assignments. Note that unlike in the case of snapshot
|
||||
* creation, the shard level clone tasks in {@link org.elasticsearch.cluster.SnapshotsInProgress.Entry#clones} are not created in the
|
||||
* initial cluster state update as is done for shard snapshot assignments in
|
||||
|
@ -120,16 +120,16 @@
|
|||
* index that is to be cloned as well as ensure the health of the index snapshots in the source snapshot. In order to determine the
|
||||
* shard count for each index that is to be cloned, we load the index metadata for each such index using the repository's
|
||||
* {@link org.elasticsearch.repositories.Repository#getSnapshotIndexMetaData} method. In order to ensure the health of the source index
|
||||
* snapshots, we load the {@link org.elasticsearch.snapshots.SnapshotInfo} for the source snapshot and check for shard snapshot
|
||||
* snapshots, we load the {@link org.opensearch.snapshots.SnapshotInfo} for the source snapshot and check for shard snapshot
|
||||
* failures of the relevant indices.</li>
|
||||
* <li>Once all shard counts are known and the health of all source indices data has been verified, we populate the
|
||||
* {@code SnapshotsInProgress.Entry#clones} map for the clone operation with the the relevant shard clone tasks.</li>
|
||||
* <li>After the clone tasks have been added to the {@code SnapshotsInProgress.Entry}, master executes them on its snapshot thread-pool
|
||||
* by invoking {@link org.elasticsearch.repositories.Repository#cloneShardSnapshot} for each shard that is to be cloned. Each completed
|
||||
* shard snapshot triggers a call to the {@link org.elasticsearch.snapshots.SnapshotsService#SHARD_STATE_EXECUTOR} which updates the
|
||||
* shard snapshot triggers a call to the {@link org.opensearch.snapshots.SnapshotsService#SHARD_STATE_EXECUTOR} which updates the
|
||||
* clone's {@code SnapshotsInProgress.Entry} to mark the shard clone operation completed.</li>
|
||||
* <li>Once all the entries in {@code SnapshotsInProgress.Entry#clones} have completed, the clone is finalized just like any other
|
||||
* snapshot through {@link org.elasticsearch.snapshots.SnapshotsService#endSnapshot}. The only difference being that the metadata that
|
||||
* snapshot through {@link org.opensearch.snapshots.SnapshotsService#endSnapshot}. The only difference being that the metadata that
|
||||
* is written out for indices and the global metadata are read from the source snapshot in the repository instead of the cluster state.
|
||||
* </li>
|
||||
* </ol>
|
||||
|
@ -171,4 +171,4 @@
|
|||
* If a snapshot request is received while there already is a delete in the cluster state for the same repository, that snapshot will not
|
||||
* start doing any shard snapshots until the delete has been executed.
|
||||
*/
|
||||
package org.elasticsearch.snapshots;
|
||||
package org.opensearch.snapshots;
|
|
@ -41,7 +41,7 @@ import org.elasticsearch.common.io.stream.StreamInput;
|
|||
import org.elasticsearch.common.network.NetworkModule;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
import org.opensearch.action.admin.cluster.reroute.ClusterRerouteRequest;
|
||||
import org.opensearch.action.admin.cluster.reroute.ClusterRerouteResponse;
|
||||
|
|
|
@ -44,7 +44,7 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.elasticsearch.snapshots.SnapshotInfoTests.randomUserMetadata;
|
||||
import static org.opensearch.snapshots.SnapshotInfoTests.randomUserMetadata;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.hasSize;
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@ package org.elasticsearch.action.admin.cluster.snapshots.create;
|
|||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotInfoTests;
|
||||
import org.elasticsearch.snapshots.SnapshotShardFailure;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotInfoTests;
|
||||
import org.opensearch.snapshots.SnapshotShardFailure;
|
||||
import org.elasticsearch.test.AbstractXContentTestCase;
|
||||
import org.opensearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse;
|
||||
|
||||
|
|
|
@ -23,10 +23,10 @@ import org.elasticsearch.common.UUIDs;
|
|||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotInfoTests;
|
||||
import org.elasticsearch.snapshots.SnapshotShardFailure;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInfo;
|
||||
import org.opensearch.snapshots.SnapshotInfoTests;
|
||||
import org.opensearch.snapshots.SnapshotShardFailure;
|
||||
import org.elasticsearch.test.AbstractSerializingTestCase;
|
||||
import org.opensearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.action.admin.cluster.snapshots.restore;
|
||||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.snapshots.RestoreInfo;
|
||||
import org.opensearch.snapshots.RestoreInfo;
|
||||
import org.elasticsearch.test.AbstractXContentTestCase;
|
||||
import org.opensearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.elasticsearch.cluster.SnapshotsInProgress;
|
|||
import org.elasticsearch.common.UUIDs;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.test.AbstractXContentTestCase;
|
||||
import org.opensearch.action.admin.cluster.snapshots.status.SnapshotIndexShardStage;
|
||||
import org.opensearch.action.admin.cluster.snapshots.status.SnapshotIndexShardStatus;
|
||||
|
|
|
@ -35,9 +35,9 @@ import org.elasticsearch.common.collect.Tuple;
|
|||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.elasticsearch.test.AbstractWireSerializingTestCase;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders;
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.MaxRetryAllocationDecider;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.shard.DocsStats;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
import org.opensearch.action.admin.indices.shrink.ResizeRequest;
|
||||
|
|
|
@ -60,7 +60,7 @@ import org.elasticsearch.indices.InvalidIndexNameException;
|
|||
import org.elasticsearch.indices.ShardLimitValidator;
|
||||
import org.elasticsearch.indices.SystemIndexDescriptor;
|
||||
import org.elasticsearch.indices.SystemIndices;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.ClusterServiceUtils;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
|
|
|
@ -32,10 +32,10 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInProgressException;
|
||||
import org.elasticsearch.snapshots.SnapshotInfoTests;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.SnapshotInfoTests;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
import org.hamcrest.core.IsNull;
|
||||
|
|
|
@ -49,10 +49,10 @@ import org.elasticsearch.index.Index;
|
|||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotInProgressException;
|
||||
import org.elasticsearch.snapshots.SnapshotInfoTests;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.SnapshotInfoTests;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
import org.hamcrest.CoreMatchers;
|
||||
|
|
|
@ -24,9 +24,9 @@ import org.elasticsearch.common.UUIDs;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.common.io.stream.BytesStreamOutput;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -40,8 +40,8 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -59,7 +59,7 @@ import org.elasticsearch.index.Index;
|
|||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.index.shard.ShardNotFoundException;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.ThrottlingAllocation
|
|||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ import org.elasticsearch.cluster.routing.allocation.allocator.ShardsAllocator;
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.ClusterRebalanceAllocationDecider;
|
||||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
import org.hamcrest.Matchers;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.Decision;
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.Decision.Type;
|
||||
import org.elasticsearch.common.collect.Tuple;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders;
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.Decision;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders;
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.Decision;
|
||||
import org.elasticsearch.cluster.routing.allocation.decider.MaxRetryAllocationDecider;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -56,11 +56,11 @@ import org.elasticsearch.common.util.set.Sets;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.ReplicaAfterPrimaryA
|
|||
import org.elasticsearch.cluster.routing.allocation.decider.SameShardAllocationDecider;
|
||||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
import org.hamcrest.Matchers;
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.ResizeAllocationDeci
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.elasticsearch.cluster.routing.allocation.decider.SameShardAllocationD
|
|||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
|
|
|
@ -47,11 +47,11 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.elasticsearch.snapshots.SnapshotsInfoService;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.SnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -59,11 +59,11 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.repositories.IndexId;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.snapshots.InternalSnapshotsInfoService.SnapshotShard;
|
||||
import org.elasticsearch.snapshots.Snapshot;
|
||||
import org.elasticsearch.snapshots.SnapshotId;
|
||||
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService.SnapshotShard;
|
||||
import org.opensearch.snapshots.Snapshot;
|
||||
import org.opensearch.snapshots.SnapshotId;
|
||||
import org.opensearch.snapshots.SnapshotShardSizeInfo;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllo
|
|||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.plugins.ClusterPlugin;
|
||||
import org.elasticsearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue