Refactor module server/src/test/java/org/elasticsearch/indices (#369)
Signed-off-by: Harold Wang <harowang@amazon.com>
This commit is contained in:
parent
70e62f4609
commit
cfd8587e5a
|
@ -33,9 +33,9 @@ import org.opensearch.cluster.node.DiscoveryNodes;
|
|||
import org.opensearch.cluster.routing.IndexShardRoutingTable;
|
||||
import org.opensearch.cluster.routing.ShardRoutingState;
|
||||
import org.opensearch.common.settings.Settings;
|
||||
import org.elasticsearch.indices.cluster.ClusterStateChanges;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.VersionUtils;
|
||||
import org.opensearch.indices.cluster.ClusterStateChanges;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
import org.opensearch.threadpool.TestThreadPool;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ import static org.opensearch.cluster.metadata.MetadataCreateIndexService.getInde
|
|||
import static org.opensearch.cluster.metadata.MetadataCreateIndexService.parseV1Mappings;
|
||||
import static org.opensearch.cluster.metadata.MetadataCreateIndexService.resolveAndValidateAliases;
|
||||
import static org.elasticsearch.index.IndexSettings.INDEX_SOFT_DELETES_SETTING;
|
||||
import static org.elasticsearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
|
||||
import static org.opensearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
|
||||
import static org.hamcrest.Matchers.endsWith;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.hasKey;
|
||||
|
|
|
@ -90,7 +90,7 @@ import static java.util.Collections.singletonList;
|
|||
import static org.opensearch.cluster.metadata.MetadataIndexTemplateService.DEFAULT_TIMESTAMP_FIELD;
|
||||
import static org.opensearch.common.settings.Settings.builder;
|
||||
import static org.elasticsearch.index.mapper.ParametrizedFieldMapper.Parameter;
|
||||
import static org.elasticsearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
|
||||
import static org.opensearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
|
||||
import static org.hamcrest.CoreMatchers.containsString;
|
||||
import static org.hamcrest.CoreMatchers.containsStringIgnoringCase;
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
|
|
|
@ -42,8 +42,8 @@ import org.opensearch.cluster.routing.allocation.AllocationService;
|
|||
import org.opensearch.cluster.routing.allocation.FailedShard;
|
||||
import org.opensearch.cluster.routing.allocation.decider.ClusterRebalanceAllocationDecider;
|
||||
import org.opensearch.common.settings.Settings;
|
||||
import org.elasticsearch.indices.cluster.ClusterStateChanges;
|
||||
import org.opensearch.test.VersionUtils;
|
||||
import org.opensearch.indices.cluster.ClusterStateChanges;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
import org.opensearch.threadpool.TestThreadPool;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.apache.lucene.search.ReferenceManager;
|
||||
import org.apache.lucene.util.SetOnce;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.elasticsearch.index.mapper.AllFieldMapper;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.DirectoryReader;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Field;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.apache.lucene.document.LongPoint;
|
||||
import org.apache.lucene.search.Query;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.apache.lucene.search.similarities.BM25Similarity;
|
||||
import org.apache.lucene.search.similarities.Similarity;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.common.xcontent.ToXContent;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.ClusterName;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.tasks.TaskResultsService;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices;
|
||||
package org.opensearch.indices;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.io.stream.BytesStreamOutput;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.analysis;
|
||||
package org.opensearch.indices.analysis;
|
||||
|
||||
import org.apache.lucene.analysis.Analyzer;
|
||||
import org.apache.lucene.analysis.CharFilter;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices.analyze;
|
||||
package org.opensearch.indices.analyze;
|
||||
|
||||
import org.apache.lucene.analysis.hunspell.Dictionary;
|
||||
import org.opensearch.common.settings.Settings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.breaker;
|
||||
package org.opensearch.indices.breaker;
|
||||
|
||||
import org.opensearch.common.breaker.CircuitBreaker;
|
||||
import org.opensearch.common.settings.Settings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.breaker;
|
||||
package org.opensearch.indices.breaker;
|
||||
|
||||
|
||||
import org.opensearch.common.breaker.ChildMemoryCircuitBreaker;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.cluster;
|
||||
package org.opensearch.indices.cluster;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.ClusterState;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.cluster;
|
||||
package org.opensearch.indices.cluster;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.cluster;
|
||||
package org.opensearch.indices.cluster;
|
||||
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.opensearch.Version;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices.flush;
|
||||
package org.opensearch.indices.flush;
|
||||
|
||||
import org.opensearch.action.support.PlainActionFuture;
|
||||
import org.opensearch.cluster.ClusterState;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices.flush;
|
||||
package org.opensearch.indices.flush;
|
||||
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.opensearch.ExceptionsHelper;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.memory.breaker;
|
||||
package org.opensearch.indices.memory.breaker;
|
||||
|
||||
import org.opensearch.common.breaker.CircuitBreaker;
|
||||
import org.opensearch.common.settings.Settings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.opensearch.common.settings.ClusterSettings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.apache.lucene.store.IOContext;
|
||||
import org.apache.lucene.store.IndexInput;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.action.ActionListener;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.opensearch.common.settings.ClusterSettings;
|
||||
import org.opensearch.common.settings.Settings;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Field;
|
||||
|
@ -78,11 +78,11 @@ import org.opensearch.index.shard.ShardId;
|
|||
import org.opensearch.index.store.Store;
|
||||
import org.opensearch.index.store.StoreFileMetadata;
|
||||
import org.opensearch.index.translog.Translog;
|
||||
import org.opensearch.test.CorruptionUtils;
|
||||
import org.opensearch.test.DummyShardLock;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.IndexSettingsModule;
|
||||
import org.opensearch.test.VersionUtils;
|
||||
import org.elasticsearch.test.CorruptionUtils;
|
||||
import org.elasticsearch.test.DummyShardLock;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.IndexSettingsModule;
|
||||
import org.elasticsearch.test.VersionUtils;
|
||||
import org.opensearch.indices.recovery.AsyncRecoveryTarget;
|
||||
import org.opensearch.threadpool.FixedExecutorBuilder;
|
||||
import org.opensearch.threadpool.TestThreadPool;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.apache.lucene.codecs.CodecUtil;
|
||||
import org.apache.lucene.store.IndexOutput;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import com.carrotsearch.randomizedtesting.generators.RandomNumbers;
|
||||
import org.apache.lucene.index.DirectoryReader;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.recovery;
|
||||
package org.opensearch.indices.recovery;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.settings;
|
||||
package org.opensearch.indices.settings;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionRequest;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.indices.store;
|
||||
package org.opensearch.indices.store;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
|
@ -62,7 +62,7 @@ import org.opensearch.index.shard.IndexShard;
|
|||
import org.opensearch.index.shard.SearchOperationListener;
|
||||
import org.opensearch.index.shard.ShardId;
|
||||
import org.opensearch.indices.IndicesService;
|
||||
import org.elasticsearch.indices.settings.InternalOrPrivateSettingsPlugin;
|
||||
import org.opensearch.indices.settings.InternalOrPrivateSettingsPlugin;
|
||||
import org.opensearch.plugins.Plugin;
|
||||
import org.opensearch.plugins.SearchPlugin;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
|
Loading…
Reference in New Issue