|
62 | 62 | import org.apache.lucene.store.Directory;
|
63 | 63 | import org.apache.lucene.util.Bits;
|
64 | 64 | import org.apache.lucene.util.BytesRef;
|
65 |
| -import org.junit.After; |
66 |
| -import org.junit.Before; |
67 | 65 | import org.opensearch.Version;
|
68 | 66 | import org.opensearch.action.index.IndexRequest;
|
69 | 67 | import org.opensearch.action.support.replication.ReplicationResponse;
|
|
73 | 71 | import org.opensearch.common.CheckedBiFunction;
|
74 | 72 | import org.opensearch.common.Nullable;
|
75 | 73 | import org.opensearch.common.Randomness;
|
76 |
| -import org.opensearch.core.common.bytes.BytesArray; |
77 |
| -import org.opensearch.core.common.bytes.BytesReference; |
78 | 74 | import org.opensearch.common.compress.CompressedXContent;
|
79 | 75 | import org.opensearch.common.concurrent.GatedCloseable;
|
80 | 76 | import org.opensearch.common.lucene.Lucene;
|
81 | 77 | import org.opensearch.common.lucene.uid.Versions;
|
82 | 78 | import org.opensearch.common.settings.Settings;
|
83 | 79 | import org.opensearch.common.unit.TimeValue;
|
84 | 80 | import org.opensearch.common.util.BigArrays;
|
| 81 | +import org.opensearch.common.util.io.IOUtils; |
85 | 82 | import org.opensearch.common.util.set.Sets;
|
| 83 | +import org.opensearch.common.xcontent.XContentFactory; |
| 84 | +import org.opensearch.core.common.bytes.BytesArray; |
| 85 | +import org.opensearch.core.common.bytes.BytesReference; |
| 86 | +import org.opensearch.core.index.Index; |
| 87 | +import org.opensearch.core.index.shard.ShardId; |
| 88 | +import org.opensearch.core.indices.breaker.CircuitBreakerService; |
| 89 | +import org.opensearch.core.indices.breaker.NoneCircuitBreakerService; |
86 | 90 | import org.opensearch.core.xcontent.MediaTypeRegistry;
|
87 | 91 | import org.opensearch.core.xcontent.NamedXContentRegistry;
|
88 | 92 | import org.opensearch.core.xcontent.XContentBuilder;
|
89 |
| -import org.opensearch.common.xcontent.XContentFactory; |
90 |
| -import org.opensearch.common.util.io.IOUtils; |
91 |
| -import org.opensearch.core.index.Index; |
92 | 93 | import org.opensearch.index.IndexSettings;
|
93 | 94 | import org.opensearch.index.MapperTestUtils;
|
94 | 95 | import org.opensearch.index.VersionType;
|
|
109 | 110 | import org.opensearch.index.seqno.ReplicationTracker;
|
110 | 111 | import org.opensearch.index.seqno.RetentionLeases;
|
111 | 112 | import org.opensearch.index.seqno.SequenceNumbers;
|
112 |
| -import org.opensearch.core.index.shard.ShardId; |
113 | 113 | import org.opensearch.index.store.Store;
|
114 | 114 | import org.opensearch.index.translog.InternalTranslogManager;
|
115 | 115 | import org.opensearch.index.translog.LocalTranslog;
|
|
118 | 118 | import org.opensearch.index.translog.TranslogDeletionPolicy;
|
119 | 119 | import org.opensearch.index.translog.TranslogManager;
|
120 | 120 | import org.opensearch.index.translog.listener.TranslogEventListener;
|
121 |
| -import org.opensearch.core.indices.breaker.CircuitBreakerService; |
122 |
| -import org.opensearch.core.indices.breaker.NoneCircuitBreakerService; |
123 | 121 | import org.opensearch.test.DummyShardLock;
|
124 | 122 | import org.opensearch.test.IndexSettingsModule;
|
125 | 123 | import org.opensearch.test.OpenSearchTestCase;
|
126 | 124 | import org.opensearch.threadpool.TestThreadPool;
|
127 | 125 | import org.opensearch.threadpool.ThreadPool;
|
| 126 | +import org.junit.After; |
| 127 | +import org.junit.Before; |
128 | 128 |
|
129 | 129 | import java.io.IOException;
|
130 | 130 | import java.nio.charset.Charset;
|
|
149 | 149 |
|
150 | 150 | import static java.util.Collections.emptyList;
|
151 | 151 | import static java.util.Collections.shuffle;
|
| 152 | +import static org.opensearch.index.engine.Engine.Operation.Origin.PEER_RECOVERY; |
| 153 | +import static org.opensearch.index.engine.Engine.Operation.Origin.PRIMARY; |
| 154 | +import static org.opensearch.index.engine.Engine.Operation.Origin.REPLICA; |
| 155 | +import static org.opensearch.index.translog.TranslogDeletionPolicies.createTranslogDeletionPolicy; |
152 | 156 | import static org.hamcrest.Matchers.equalTo;
|
153 | 157 | import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
154 | 158 | import static org.hamcrest.Matchers.instanceOf;
|
155 | 159 | import static org.hamcrest.Matchers.lessThanOrEqualTo;
|
156 | 160 | import static org.hamcrest.Matchers.notNullValue;
|
157 |
| -import static org.opensearch.index.engine.Engine.Operation.Origin.PEER_RECOVERY; |
158 |
| -import static org.opensearch.index.engine.Engine.Operation.Origin.PRIMARY; |
159 |
| -import static org.opensearch.index.engine.Engine.Operation.Origin.REPLICA; |
160 |
| -import static org.opensearch.index.translog.TranslogDeletionPolicies.createTranslogDeletionPolicy; |
161 | 161 |
|
162 | 162 | public abstract class EngineTestCase extends OpenSearchTestCase {
|
163 | 163 |
|
|
0 commit comments