Rename org.elasticsearch.gateway to org.opensearch.gateway (#346)
Signed-off-by: Harold Wang <harowang@amazon.com>
This commit is contained in:
parent
3fc453eace
commit
642f823228
|
@ -27,7 +27,7 @@ import org.opensearch.cluster.metadata.IndexMetadata;
|
|||
import org.opensearch.cluster.metadata.Metadata;
|
||||
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||
import org.opensearch.common.collect.ImmutableOpenMap;
|
||||
import org.elasticsearch.gateway.GatewayService;
|
||||
import org.opensearch.gateway.GatewayService;
|
||||
import org.elasticsearch.index.Index;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.gateway.GatewayMetaState;
|
||||
import org.opensearch.gateway.GatewayMetaState;
|
||||
import org.opensearch.monitor.StatusInfo;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.threadpool.ThreadPool.Names;
|
||||
|
|
|
@ -94,8 +94,8 @@ import java.util.stream.Stream;
|
|||
import java.util.stream.StreamSupport;
|
||||
|
||||
import static org.opensearch.cluster.coordination.NoMasterBlockService.NO_MASTER_BLOCK_ID;
|
||||
import static org.elasticsearch.gateway.ClusterStateUpdaters.hideStateIfNotRecovered;
|
||||
import static org.elasticsearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.opensearch.gateway.ClusterStateUpdaters.hideStateIfNotRecovered;
|
||||
import static org.opensearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.opensearch.monitor.StatusInfo.Status.UNHEALTHY;
|
||||
|
||||
public class Coordinator extends AbstractLifecycleComponent implements Discovery {
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.cli.Terminal;
|
|||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.metadata.Metadata;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -46,7 +46,7 @@ import java.util.Set;
|
|||
import java.util.function.BiConsumer;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.elasticsearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.opensearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
|
||||
public class JoinTaskExecutor implements ClusterStateTaskExecutor<JoinTaskExecutor.Task> {
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.env.NodeEnvironment;
|
||||
import org.elasticsearch.env.NodeMetadata;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.opensearch.cluster.metadata.Metadata;
|
|||
import org.elasticsearch.common.collect.Tuple;
|
||||
import org.opensearch.common.regex.Regex;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.collect.Tuple;
|
|||
import org.opensearch.common.regex.Regex;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.elasticsearch.common.collect.Tuple;
|
|||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.common.xcontent.ToXContent;
|
|||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.gateway.MetadataStateFormat;
|
||||
import org.opensearch.gateway.MetadataStateFormat;
|
||||
import org.elasticsearch.index.Index;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.cluster.routing.ShardRouting;
|
|||
import org.opensearch.cluster.routing.UnassignedInfo;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.opensearch.gateway.GatewayAllocator;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.elasticsearch.common.settings.Setting.Property;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.opensearch.discovery.zen.ZenDiscovery;
|
||||
import org.elasticsearch.gateway.GatewayMetaState;
|
||||
import org.opensearch.gateway.GatewayMetaState;
|
||||
import org.elasticsearch.monitor.NodeHealthService;
|
||||
import org.elasticsearch.plugins.DiscoveryPlugin;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
|
|
@ -87,7 +87,7 @@ import java.util.function.Consumer;
|
|||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.elasticsearch.common.unit.TimeValue.timeValueSeconds;
|
||||
import static org.elasticsearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.opensearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
|
||||
public class ZenDiscovery extends AbstractLifecycleComponent implements Discovery, PingContextProvider, IncomingClusterStateListener {
|
||||
private static final Logger logger = LogManager.getLogger(ZenDiscovery.class);
|
||||
|
|
|
@ -36,7 +36,7 @@ import java.util.Map;
|
|||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import static org.elasticsearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.opensearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
|
||||
public interface ZenPing extends Releasable {
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ import org.opensearch.common.unit.ByteSizeValue;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.gateway.MetadataStateFormat;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.MetadataStateFormat;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.IndexSettings;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.common.xcontent.ObjectParser;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.gateway.MetadataStateFormat;
|
||||
import org.opensearch.gateway.MetadataStateFormat;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
|
|
@ -31,8 +31,8 @@ import org.opensearch.cluster.node.DiscoveryNode;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.elasticsearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.gateway.MetadataStateFormat;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.MetadataStateFormat;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.opensearch.OpenSearchException;
|
|||
import org.opensearch.Version;
|
||||
import org.opensearch.cli.Terminal;
|
||||
import org.opensearch.cluster.coordination.OpenSearchNodeCommand;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.opensearch.cluster.node.DiscoveryNodes;
|
|||
import org.opensearch.cluster.routing.RoutingTable;
|
||||
import org.opensearch.common.UUIDs;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.gateway.GatewayService;
|
||||
import org.opensearch.gateway.GatewayService;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.TestCustomMetadata;
|
||||
|
|
|
@ -51,8 +51,8 @@ import org.elasticsearch.common.settings.Setting;
|
|||
import org.elasticsearch.common.settings.Setting.Property;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.settings.SettingsModule;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.gateway.GatewayAllocator;
|
||||
import org.elasticsearch.plugins.ClusterPlugin;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
import org.opensearch.cluster.ClusterInfoService;
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.opensearch.cluster.node.DiscoveryNodeRole;
|
|||
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.gateway.GatewayMetaState;
|
||||
import org.opensearch.gateway.GatewayMetaState;
|
||||
import org.elasticsearch.monitor.StatusInfo;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.opensearch.cluster.coordination.Coordinator;
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.opensearch.common.util.set.Sets;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.opensearch.discovery.DiscoveryModule;
|
||||
import org.opensearch.discovery.zen.PublishClusterStateStats;
|
||||
import org.elasticsearch.gateway.GatewayService;
|
||||
import org.opensearch.gateway.GatewayService;
|
||||
import org.elasticsearch.monitor.StatusInfo;
|
||||
import org.elasticsearch.test.MockLogAppender;
|
||||
import org.opensearch.cluster.coordination.DetachClusterCommand;
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.opensearch.cluster.routing.allocation.decider.SameShardAllocationDeci
|
|||
import org.opensearch.cluster.routing.allocation.decider.ThrottlingAllocationDecider;
|
||||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.opensearch.gateway.GatewayAllocator;
|
||||
import org.opensearch.snapshots.EmptySnapshotsInfoService;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.gateway.TestGatewayAllocator;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.opensearch.cluster.action.shard.ShardStateAction;
|
|||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.gateway.WriteStateException;
|
||||
import org.opensearch.gateway.WriteStateException;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.IndexService;
|
||||
import org.elasticsearch.index.shard.IndexShard;
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.opensearch.common.util.BigArrays;
|
|||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.env.NodeEnvironment;
|
||||
import org.elasticsearch.env.TestEnvironment;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
import org.elasticsearch.index.IndexSettings;
|
||||
import org.elasticsearch.index.MergePolicyConfig;
|
||||
import org.elasticsearch.index.engine.EngineException;
|
||||
|
|
|
@ -38,9 +38,9 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.env.NodeEnvironment;
|
||||
import org.elasticsearch.env.ShardLockObtainFailedException;
|
||||
import org.elasticsearch.gateway.GatewayMetaState;
|
||||
import org.elasticsearch.gateway.LocalAllocateDangledIndices;
|
||||
import org.elasticsearch.gateway.MetaStateService;
|
||||
import org.opensearch.gateway.GatewayMetaState;
|
||||
import org.opensearch.gateway.LocalAllocateDangledIndices;
|
||||
import org.opensearch.gateway.MetaStateService;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.IndexModule;
|
||||
import org.elasticsearch.index.IndexService;
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.opensearch.cluster.routing.allocation.decider.SameShardAllocationDeci
|
|||
import org.opensearch.common.collect.ImmutableOpenMap;
|
||||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.opensearch.gateway.GatewayAllocator;
|
||||
import org.opensearch.cluster.ClusterInfoService;
|
||||
import org.opensearch.cluster.ClusterModule;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
|
|
|
@ -65,10 +65,10 @@ import org.opensearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor;
|
|||
import org.opensearch.discovery.DiscoveryModule;
|
||||
import org.opensearch.discovery.SeedHostsProvider;
|
||||
import org.elasticsearch.env.NodeEnvironment;
|
||||
import org.elasticsearch.gateway.ClusterStateUpdaters;
|
||||
import org.elasticsearch.gateway.GatewayService;
|
||||
import org.elasticsearch.gateway.MockGatewayMetaState;
|
||||
import org.elasticsearch.gateway.PersistedClusterStateService;
|
||||
import org.opensearch.gateway.ClusterStateUpdaters;
|
||||
import org.opensearch.gateway.GatewayService;
|
||||
import org.opensearch.gateway.MockGatewayMetaState;
|
||||
import org.opensearch.gateway.PersistedClusterStateService;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
import org.elasticsearch.monitor.NodeHealthService;
|
||||
import org.elasticsearch.monitor.StatusInfo;
|
||||
|
@ -136,7 +136,7 @@ import static org.opensearch.cluster.coordination.LeaderChecker.LEADER_CHECK_TIM
|
|||
import static org.opensearch.cluster.coordination.NoMasterBlockService.NO_MASTER_BLOCK_ID;
|
||||
import static org.opensearch.cluster.coordination.Reconfigurator.CLUSTER_AUTO_SHRINK_VOTING_CONFIGURATION;
|
||||
import static org.opensearch.discovery.PeerFinder.DISCOVERY_FIND_PEERS_INTERVAL_SETTING;
|
||||
import static org.elasticsearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.opensearch.gateway.GatewayService.STATE_NOT_RECOVERED_BLOCK;
|
||||
import static org.elasticsearch.monitor.StatusInfo.Status.HEALTHY;
|
||||
import static org.elasticsearch.node.Node.NODE_NAME_SETTING;
|
||||
import static org.opensearch.transport.TransportService.NOOP_TRANSPORT_INTERCEPTOR;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.gateway;
|
||||
package org.opensearch.gateway;
|
||||
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.metadata.Manifest;
|
||||
|
|
|
@ -24,11 +24,11 @@ import org.opensearch.cluster.node.DiscoveryNodes;
|
|||
import org.opensearch.cluster.routing.ShardRouting;
|
||||
import org.opensearch.cluster.routing.allocation.FailedShard;
|
||||
import org.opensearch.cluster.routing.allocation.RoutingAllocation;
|
||||
import org.elasticsearch.gateway.AsyncShardFetch;
|
||||
import org.elasticsearch.gateway.GatewayAllocator;
|
||||
import org.elasticsearch.gateway.PrimaryShardAllocator;
|
||||
import org.elasticsearch.gateway.ReplicaShardAllocator;
|
||||
import org.elasticsearch.gateway.TransportNodesListGatewayStartedShards.NodeGatewayStartedShards;
|
||||
import org.opensearch.gateway.AsyncShardFetch;
|
||||
import org.opensearch.gateway.GatewayAllocator;
|
||||
import org.opensearch.gateway.PrimaryShardAllocator;
|
||||
import org.opensearch.gateway.ReplicaShardAllocator;
|
||||
import org.opensearch.gateway.TransportNodesListGatewayStartedShards.NodeGatewayStartedShards;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.indices.store.TransportNodesListShardStoreMetadata.NodeStoreFilesMetadata;
|
||||
|
||||
|
|
Loading…
Reference in New Issue