Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Update client benchmark post type removal #3074

Closed
dreamer-89 opened this issue Apr 25, 2022 · 0 comments
Closed

[Bug] Update client benchmark post type removal #3074

dreamer-89 opened this issue Apr 25, 2022 · 0 comments
Assignees
Labels
bug Something isn't working Clients Clients within the Core repository such as High level Rest client and low level client

Comments

@dreamer-89
Copy link
Member

dreamer-89 commented Apr 25, 2022

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
[
@dreamer-89 dreamer-89 added bug Something isn't working untriaged Clients Clients within the Core repository such as High level Rest client and low level client labels Apr 25, 2022
@dreamer-89 dreamer-89 self-assigned this Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Clients Clients within the Core repository such as High level Rest client and low level client
Projects
None yet
Development

No branches or pull requests

2 participants