Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 3.5.0
-
None
-
Ubuntu 16.04
Slow machine (HDD, high load...)
Description
The symptom is that the jena-text-es build fails with this error:
[ERROR] Failed to execute goal com.github.alexcojocaru:elasticsearch-maven-plugin:5.2:runforked (start-elasticsearch) on project jena-text-es: Condition returned by method "waitToStart" in class com.github.alexcojocaru.mojo.elasticsearch.v2.client.Monitor was not fulfilled within 30 seconds. -> [Help 1]
The problem seems to be that Elasticsearch starts up slowly and the elasticsearch-maven-plugin times out at 30 seconds.
I found a way to trigger this by simulating high load using the stress utility:
$ stress --cpu 3 -i 3 -d 3 stress: info: [29489] dispatching hogs: 3 cpu, 3 io, 0 vm, 3 hdd
Increasing the ES startup timeout should help. I will prepare a PR shortly.
Attachments
Issue Links
- links to