Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2721

Fix transient failures in DefaultElasticsearchClientFactoryTest.discovery

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0.Beta2
    • Fix Version/s: 5.8.0.Beta3
    • Component/s: elasticsearch, tests
    • Labels:
      None

      Description

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

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              yrodiere Yoann Rodière
              Reporter:
              yrodiere Yoann Rodière
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: