Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1413

jena-text-es integration tests sometimes fail

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.5.0
    • Jena 3.6.0
    • Text
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            osma Osma Suominen
            osma Osma Suominen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment