Skip to content

[Bug] Update client benchmark post type removal #3074

@dreamer-89

Description

@dreamer-89

Coming from discussion in #2979.

Background

Post type removal in #1940, need to remove the same from client bulk indexing benchmark. type is taken as input from the CLI.
Code usage, defined here.

Today, running bulk indexing benchmark fails with 400 bad request

Command

gradlew -p client/benchmark run --args ' rest bulk localhost build/documents-2.json geonames type 8647880 5000'

Output

org.opensearch.OpenSearchException: org.opensearch.client.ResponseException: method [POST], host [http://localhost:9200], URI [/geonames/type/_noop_bulk], status line [HTTP/1.1 400 Bad Request]
{"error":"no handler found for uri [/geonames/type/_noop_bulk] and method [POST]"}
        at org.opensearch.client.benchmark.rest.RestClientBenchmark$RestBulkRequestExecutor.bulkIndex(RestClientBenchmark.java:100) ~[main/:?]
        at org.opensearch.client.benchmark.ops.bulk.BulkBenchmarkTask$BulkIndexer.run(BulkBenchmarkTask.java:191) [main/:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.opensearch.client.ResponseException: method [POST], host [http://localhost:9200], URI [/geonames/type/_noop_bulk], status line [HTTP/1.1 400 Bad Request]
{"error":"no handler found for uri [/geonames/type/_noop_bulk] and method [POST]"}
        at org.opensearch.client.RestClient.convertResponse(RestClient.java:350) ~[opensearch-rest-client-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
        at org.opensearch.client.RestClient.performRequest(RestClient.java:320) ~[opensearch-rest-client-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
        at org.opensearch.client.RestClient.performRequest(RestClient.java:295) ~[opensearch-rest-client-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
        at org.opensearch.client.benchmark.rest.RestClientBenchmark$RestBulkRequestExecutor.bulkIndex(RestClientBenchmark.java:97) ~[main/:?]
        ... 6 more
[

Metadata

Metadata

Assignees

Labels

ClientsClients within the Core repository such as High level Rest client and low level clientbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions