mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-29 03:18:26 +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.
|
* duplication but for now we have no real way to share code.
|
||||||
*/
|
*/
|
||||||
public class IndexingIT extends AbstractRollingTestCase {
|
public class IndexingIT extends AbstractRollingTestCase {
|
||||||
|
|
||||||
public void testIndexing() throws IOException {
|
public void testIndexing() throws IOException {
|
||||||
switch (CLUSTER_TYPE) {
|
switch (CLUSTER_TYPE) {
|
||||||
case OLD:
|
case OLD:
|
||||||
@ -103,11 +104,13 @@ public class IndexingIT extends AbstractRollingTestCase {
|
|||||||
String recoverQuickly = "{\"settings\": {\"index.unassigned.node_left.delayed_timeout\": \"100ms\"}}";
|
String recoverQuickly = "{\"settings\": {\"index.unassigned.node_left.delayed_timeout\": \"100ms\"}}";
|
||||||
Request createIndexWithReplicas = new Request("PUT", "/index_with_replicas");
|
Request createIndexWithReplicas = new Request("PUT", "/index_with_replicas");
|
||||||
createIndexWithReplicas.setJsonEntity(recoverQuickly);
|
createIndexWithReplicas.setJsonEntity(recoverQuickly);
|
||||||
|
useIgnoreMultipleMatchingTemplatesWarningsHandler(createIndexWithReplicas);
|
||||||
client().performRequest(createIndexWithReplicas);
|
client().performRequest(createIndexWithReplicas);
|
||||||
|
|
||||||
Request createEmptyIndex = new Request("PUT", "/empty_index");
|
Request createEmptyIndex = new Request("PUT", "/empty_index");
|
||||||
// Ask for recovery to be quick
|
// Ask for recovery to be quick
|
||||||
createEmptyIndex.setJsonEntity(recoverQuickly);
|
createEmptyIndex.setJsonEntity(recoverQuickly);
|
||||||
|
useIgnoreMultipleMatchingTemplatesWarningsHandler(createEmptyIndex);
|
||||||
client().performRequest(createEmptyIndex);
|
client().performRequest(createEmptyIndex);
|
||||||
|
|
||||||
bulk("test_index", "_OLD", 5);
|
bulk("test_index", "_OLD", 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user