parent
7e4c0e6991
commit
0a850f032b
|
@ -7,7 +7,9 @@ package org.elasticsearch.xpack.restart;
|
|||
|
||||
import org.elasticsearch.Version;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.elasticsearch.client.Response;
|
||||
import org.elasticsearch.client.WarningsHandler;
|
||||
import org.elasticsearch.common.Strings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
|
@ -70,6 +72,9 @@ public class MlMigrationFullClusterRestartIT extends AbstractFullClusterRestartT
|
|||
"\"airline\": {\"type\": \"keyword\"}," +
|
||||
"\"responsetime\": {\"type\": \"float\"}" +
|
||||
"}}}}");
|
||||
RequestOptions.Builder options = createTestIndex.getOptions().toBuilder();
|
||||
options.setWarningsHandler(WarningsHandler.PERMISSIVE);
|
||||
createTestIndex.setOptions(options);
|
||||
client().performRequest(createTestIndex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue