Reindex: Fixed typo in assertion failure message (#30619)

Fix a typo in an assertion failure message.
This commit is contained in:
Shashwat Anand 2018-05-17 01:56:23 +05:30 committed by Nik Everett
parent 8ff9baeb82
commit f0da3da6b0
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public class RestReindexAction extends AbstractBaseReindexRestHandler<ReindexReq
@Override @Override
protected ReindexRequest buildRequest(RestRequest request) throws IOException { protected ReindexRequest buildRequest(RestRequest request) throws IOException {
if (request.hasParam("pipeline")) { if (request.hasParam("pipeline")) {
throw new IllegalArgumentException("_reindex doesn't support [pipeline] as a query parmaeter. " throw new IllegalArgumentException("_reindex doesn't support [pipeline] as a query parameter. "
+ "Specify it in the [dest] object instead."); + "Specify it in the [dest] object instead.");
} }
ReindexRequest internal = new ReindexRequest(new SearchRequest(), new IndexRequest()); ReindexRequest internal = new ReindexRequest(new SearchRequest(), new IndexRequest());

View File

@ -149,7 +149,7 @@ public class RestReindexActionTests extends ESTestCase {
request.withParams(singletonMap("pipeline", "doesn't matter")); request.withParams(singletonMap("pipeline", "doesn't matter"));
Exception e = expectThrows(IllegalArgumentException.class, () -> action.buildRequest(request.build())); Exception e = expectThrows(IllegalArgumentException.class, () -> action.buildRequest(request.build()));
assertEquals("_reindex doesn't support [pipeline] as a query parmaeter. Specify it in the [dest] object instead.", e.getMessage()); assertEquals("_reindex doesn't support [pipeline] as a query parameter. Specify it in the [dest] object instead.", e.getMessage());
} }
public void testSetScrollTimeout() throws IOException { public void testSetScrollTimeout() throws IOException {