DeleteByQuery Illegal state exception

(Shira Bendor) #1

I'm testing this API and have this code:

        BulkByScrollResponse response =

Which I copied from the documentation.

I got the following exception:

java.lang.IllegalStateException: failed to find action [org.elasticsearch.index.reindex.DeleteByQueryAction@5794e1cf] to execute
at org.elasticsearch.client.node.NodeClient.transportAction(
at org.elasticsearch.client.node.NodeClient.executeLocally(
at org.elasticsearch.client.node.NodeClient.doExecute(
at org.elasticsearch.action.ActionRequestBuilder.execute(
at org.elasticsearch.action.ActionRequestBuilder.execute(
at org.elasticsearch.action.ActionRequestBuilder.get(

Can someone please suggest why I'm seeing this?

(Nik Everett) #2

Did you use the PreBuiltTransportClient like this?

(Shira Bendor) #3

You are correct.
I did this test with an embedded node.
Once I moved to the PreBuiltTransportClient it worked.
I know embedded node is not supported but it's important to me to use it in this specific test.
Can you explain why it isn't working? And if there is something else I could be doing to use this API with the embedded node?


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.