Skip to content

Commit 81f29fb

Browse files
ashashwatnik9000
authored andcommitted
Reindex: Fixed typo in assertion failure message (#30619)
Fix a typo in an assertion failure message.
1 parent 87874d0 commit 81f29fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/reindex/src/main/java/org/elasticsearch/index/reindex/RestReindexAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client
115115
@Override
116116
protected ReindexRequest buildRequest(RestRequest request) throws IOException {
117117
if (request.hasParam("pipeline")) {
118-
throw new IllegalArgumentException("_reindex doesn't support [pipeline] as a query parmaeter. "
118+
throw new IllegalArgumentException("_reindex doesn't support [pipeline] as a query parameter. "
119119
+ "Specify it in the [dest] object instead.");
120120
}
121121
ReindexRequest internal = new ReindexRequest(new SearchRequest(), new IndexRequest());

modules/reindex/src/test/java/org/elasticsearch/index/reindex/RestReindexActionTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void testPipelineQueryParameterIsError() throws IOException {
149149
request.withParams(singletonMap("pipeline", "doesn't matter"));
150150
Exception e = expectThrows(IllegalArgumentException.class, () -> action.buildRequest(request.build()));
151151

152-
assertEquals("_reindex doesn't support [pipeline] as a query parmaeter. Specify it in the [dest] object instead.", e.getMessage());
152+
assertEquals("_reindex doesn't support [pipeline] as a query parameter. Specify it in the [dest] object instead.", e.getMessage());
153153
}
154154

155155
public void testSetScrollTimeout() throws IOException {

0 commit comments

Comments
 (0)