# Elastic search 6.4.0 test case execution failed - Could not dispatch a message to the daemon

**URL:** <https://discuss.elastic.co/t/elastic-search-6-4-0-test-case-execution-failed-could-not-dispatch-a-message-to-the-daemon/146615>\
**Category:** Elasticsearch\
**Created:** [August 30, 2018, 4:42am UTC](https://discuss.elastic.co/t/elastic-search-6-4-0-test-case-execution-failed-could-not-dispatch-a-message-to-the-daemon/146615 "2018-08-30T04:42:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakravarthy\_G](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chakravarthy\_G](https://discuss.elastic.co/u/chakravarthy_G)\
**Post date:** [August 30, 2018, 4:42am UTC](https://discuss.elastic.co/t/elastic-search-6-4-0-test-case-execution-failed-could-not-dispatch-a-message-to-the-daemon/146615/1 "2018-08-30T04:42:53Z")

</div>

**Elasticsearch version** ( `bin/elasticsearch --version` ): v6.4.0

**JVM version** ( `java -version` ): openjdk version "10.0.2-adoptopenjdk"

**OS version** ( `uname -a` if on a Unix-like system): Linux ubuntu 4.4.0-21-generic [#37](https://github.com/elastic/elasticsearch/issues/37)-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86\_64 x86\_64 x86\_64 GNU/Linux

**Description of the problem including expected versus actual behavior** :  
Elastic search build is succesful but test case execution failed with an exception.

**Actual:**  
all test cases should pass  
**Observed:** (on both Intel and non-Intel architecture)  
`Found the 1`test`tasks: :client:benchmark:test -> class org.gradle.api.tasks.testing.Test_Decorated BUILD FAILED`  
`14:00:46.338 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@5996d8e4 14:00:46.338 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 18: dispatching class org.gradle.launcher.daemon.protocol.CloseInput 14:00:46.339 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Found the 1`test`tasks: :client:benchmark:test -> class org.gradle.api.tasks.testing.Test_Decorated] from daemon DaemonInfo{pid=14844, address=[00d5ce49-cbfb-46f4-ac5c-2706300e9b49 port:40934, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Busy, lastBusy=1535896561769, context=DefaultDaemonContext[uid=94452509-2ac2-4fc5-b600-8e097e73fc94,javaHome=/home/ubuntu/ES640_oracle/jdk-10.0.2,daemonRegistryDir=/home/ubuntu/.gradle/daemon,pid=14844,idleTimeout=120000,daemonOpts=-Xmx2g,-Dfile.encoding=UTF8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done). 14:00:46.339 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished 14:00:46.339 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] Problem dispatching message to the daemon. Performing 'on failure' operation... 14:00:46.346 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 14:00:46.347 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 14:00:46.347 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 14:00:46.347 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 14:00:46.347 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not dispatch a message to the daemon.`

**Steps to reproduce** :

1. Install and export JAVA (adopt open jdk 10 hotspot) from [https://adoptopenjdk.net/nightly.html?variant=openjdk10&jvmVariant=hotspot](https://adoptopenjdk.net/nightly.html?variant=openjdk10&jvmVariant=hotspot)
2. cd /home/test
3. git clone [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch)
4. cd elasticsearch
5. git checkout v6.4.0
6. ./gradlew assemble
7. ./gradlew test --continue -Dtests.haltonfailure=false -Dtests.es.node.mode=network

Elastic search 6.3.x is getting built and TC are passing with the same steps mentioned above, but getting the issue with v6.4.0 on the same VM with same settings.  
**(`gradlew check` is working which executes all the unit+integration TCs but this `gradlew test` issue persists)**

Please let me know if I miss anything and provide steps if test suit is getting executed from your side.

---

<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:** [September 27, 2018, 4:43am UTC](https://discuss.elastic.co/t/elastic-search-6-4-0-test-case-execution-failed-could-not-dispatch-a-message-to-the-daemon/146615/2 "2018-09-27T04:43:04Z")

</div>

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