We're updating the issue view to help you get more done. 

Fix transient failures in DefaultElasticsearchClientFactoryTest.discovery

Description

The test seems to fail sometimes, though not often, with the following stack trace:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.591 sec <<< FAILURE! - in org.hibernate.search.elasticsearch.test.DefaultElasticsearchClientFactoryTest discovery(org.hibernate.search.elasticsearch.test.DefaultElasticsearchClientFactoryTest) Time elapsed: 3.224 sec <<< FAILURE! com.github.tomakehurst.wiremock.client.VerificationException: No requests exactly matched. Most similar request was: expected:< POST /myIndex/myType/? > but was:< GET /_nodes/http?timeout=1000ms > at com.github.tomakehurst.wiremock.client.VerificationException.forUnmatchedRequestPattern(VerificationException.java:39) at com.github.tomakehurst.wiremock.client.WireMock.verificationExceptionForNearMisses(WireMock.java:395) at com.github.tomakehurst.wiremock.client.WireMock.verifyThat(WireMock.java:385) at com.github.tomakehurst.wiremock.client.WireMock.verifyThat(WireMock.java:364) at com.github.tomakehurst.wiremock.WireMockServer.verify(WireMockServer.java:236) at org.hibernate.search.elasticsearch.test.DefaultElasticsearchClientFactoryTest.discovery(DefaultElasticsearchClientFactoryTest.java:342)

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.8.0.Beta2

Priority

Minor