# Cannot use \_delete\_by\_query in ESSingleNodeTestCase tests with 8.X version.

**URL:** <https://discuss.elastic.co/t/cannot-use-delete-by-query-in-essinglenodetestcase-tests-with-8-x-version/338564>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [July 17, 2023, 1:21pm UTC](https://discuss.elastic.co/t/cannot-use-delete-by-query-in-essinglenodetestcase-tests-with-8-x-version/338564 "2023-07-17T13:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fusiasty](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@fusiasty](https://discuss.elastic.co/u/fusiasty)\
**Post date:** [July 17, 2023, 1:21pm UTC](https://discuss.elastic.co/t/cannot-use-delete-by-query-in-essinglenodetestcase-tests-with-8-x-version/338564/1 "2023-07-17T13:21:53Z")

</div>

Hi,  
I'm just migrating my application from ES 7.17 to ES 8.8.2 and faced one issue.  
I'm using ESSingleNodeTestCase to check my implementation.  
My application uses [Java API Client 8.8](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html).  
I figured out how to run HTTP inside tests and most of tests run correctly except all using \_delete\_by\_query.

Details using '_co.elastic.clients.elasticsearch.core.DeleteByQueryRequest_':

> Response: 400 Bad Request  
> co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'ErrorResponse.status'

I checked it carefully and using application it works OK but using this embedded ES it doesn't.  
I found information that I should add ReindexPluggin but unfortunately there is no implementation for ES 8.X [here](https://mvnrepository.com/artifact/org.elasticsearch.plugin/reindex-client).  
I found that for Netty4Plugin instead of [old one](https://mvnrepository.com/artifact/org.elasticsearch.plugin/transport-netty4-client) there is a new project for 8.X version [here](https://mvnrepository.com/artifact/org.elasticsearch.plugin/transport-netty4).  
Is there something similar for ReindexPlugin or am I doing something wrong here ?

Regards,  
Fusiasty

---

<div class="post-metadata">

**Author:** ![fusiasty](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@fusiasty](https://discuss.elastic.co/u/fusiasty)\
**Post date:** [August 2, 2023, 8:32am UTC](https://discuss.elastic.co/t/cannot-use-delete-by-query-in-essinglenodetestcase-tests-with-8-x-version/338564/2 "2023-08-02T08:32:12Z")

</div>

UP.  
Any idea ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 30, 2023, 8:32am UTC](https://discuss.elastic.co/t/cannot-use-delete-by-query-in-essinglenodetestcase-tests-with-8-x-version/338564/3 "2023-08-30T08:32:43Z")

</div>

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