I have tried using the restClient.performRequest() method attempting to do various things but it always throws "java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED".
My external ES is running on the same host as the test, which I am running from IntelliJ. I am tailing the ES log file and don't see any activity. I can do a curl command to ES in a terminal and that works fine.
Hi Kevin,
that sounds weird, looks like the underlying http client is stopped, but that gets started by RestClientBuilder when calling build and is stopped internally when the client gets closed. Maybe silly question, but is there a possibility that the client gets closed before you do the performRequest? Or do you see any errors in the log when creating the client? How do you run your client code?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.