mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
parent
2d2b74dd32
commit
da69644498
@ -50,6 +50,7 @@ import static org.hamcrest.Matchers.equalTo;
|
||||
* duplication but for now we have no real way to share code.
|
||||
*/
|
||||
public class IndexingIT extends AbstractRollingTestCase {
|
||||
|
||||
public void testIndexing() throws IOException {
|
||||
switch (CLUSTER_TYPE) {
|
||||
case OLD:
|
||||
@ -103,11 +104,13 @@ public class IndexingIT extends AbstractRollingTestCase {
|
||||
String recoverQuickly = "{\"settings\": {\"index.unassigned.node_left.delayed_timeout\": \"100ms\"}}";
|
||||
Request createIndexWithReplicas = new Request("PUT", "/index_with_replicas");
|
||||
createIndexWithReplicas.setJsonEntity(recoverQuickly);
|
||||
useIgnoreMultipleMatchingTemplatesWarningsHandler(createIndexWithReplicas);
|
||||
client().performRequest(createIndexWithReplicas);
|
||||
|
||||
Request createEmptyIndex = new Request("PUT", "/empty_index");
|
||||
// Ask for recovery to be quick
|
||||
createEmptyIndex.setJsonEntity(recoverQuickly);
|
||||
useIgnoreMultipleMatchingTemplatesWarningsHandler(createEmptyIndex);
|
||||
client().performRequest(createEmptyIndex);
|
||||
|
||||
bulk("test_index", "_OLD", 5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user