|
8 | 8 |
|
9 | 9 | package org.opensearch.search.pit;
|
10 | 10 |
|
11 |
| -import com.carrotsearch.randomizedtesting.annotations.ParametersFactory; |
12 |
| - |
13 | 11 | import org.opensearch.ExceptionsHelper;
|
14 | 12 | import org.opensearch.action.LatchedActionListener;
|
15 | 13 | import org.opensearch.action.admin.indices.stats.IndicesStatsRequest;
|
|
27 | 25 | import org.opensearch.common.action.ActionFuture;
|
28 | 26 | import org.opensearch.common.settings.Settings;
|
29 | 27 | import org.opensearch.common.unit.TimeValue;
|
30 |
| -import org.opensearch.common.util.FeatureFlags; |
31 | 28 | import org.opensearch.core.action.ActionListener;
|
32 | 29 | import org.opensearch.search.SearchContextMissingException;
|
33 | 30 | import org.opensearch.search.builder.PointInTimeBuilder;
|
34 | 31 | import org.opensearch.test.InternalTestCluster;
|
35 | 32 | import org.opensearch.test.OpenSearchIntegTestCase;
|
36 |
| -import org.opensearch.test.ParameterizedOpenSearchIntegTestCase; |
37 | 33 | import org.opensearch.threadpool.TestThreadPool;
|
38 | 34 | import org.opensearch.threadpool.ThreadPool;
|
39 | 35 | import org.junit.After;
|
40 | 36 | import org.junit.Before;
|
41 | 37 |
|
42 | 38 | import java.util.ArrayList;
|
43 |
| -import java.util.Arrays; |
44 |
| -import java.util.Collection; |
45 | 39 | import java.util.List;
|
46 | 40 | import java.util.concurrent.CountDownLatch;
|
47 | 41 | import java.util.concurrent.ExecutionException;
|
|
50 | 44 | import java.util.concurrent.atomic.AtomicInteger;
|
51 | 45 |
|
52 | 46 | import static org.opensearch.action.support.WriteRequest.RefreshPolicy.IMMEDIATE;
|
53 |
| -import static org.opensearch.search.SearchService.CLUSTER_CONCURRENT_SEGMENT_SEARCH_SETTING; |
54 | 47 | import static org.hamcrest.Matchers.blankOrNullString;
|
55 | 48 | import static org.hamcrest.Matchers.containsString;
|
56 | 49 | import static org.hamcrest.Matchers.not;
|
|
59 | 52 | * Multi node integration tests for delete PIT use cases
|
60 | 53 | */
|
61 | 54 | @OpenSearchIntegTestCase.ClusterScope(scope = OpenSearchIntegTestCase.Scope.SUITE, numDataNodes = 2)
|
62 |
| -public class DeletePitMultiNodeIT extends ParameterizedOpenSearchIntegTestCase { |
63 |
| - public DeletePitMultiNodeIT(Settings settings) { |
64 |
| - super(settings); |
65 |
| - } |
66 |
| - |
67 |
| - @ParametersFactory |
68 |
| - public static Collection<Object[]> parameters() { |
69 |
| - return Arrays.asList( |
70 |
| - new Object[] { Settings.builder().put(CLUSTER_CONCURRENT_SEGMENT_SEARCH_SETTING.getKey(), false).build() }, |
71 |
| - new Object[] { Settings.builder().put(CLUSTER_CONCURRENT_SEGMENT_SEARCH_SETTING.getKey(), true).build() } |
72 |
| - ); |
73 |
| - } |
74 |
| - |
75 |
| - @Override |
76 |
| - protected Settings featureFlagSettings() { |
77 |
| - return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build(); |
78 |
| - } |
| 55 | +public class DeletePitMultiNodeIT extends OpenSearchIntegTestCase { |
79 | 56 |
|
80 | 57 | @Before
|
81 | 58 | public void setupIndex() throws ExecutionException, InterruptedException {
|
|
0 commit comments