Hi Tilman,
  Thank you for raising this!  I don't think we have discussed this.  I've
noticed it and build in sequence or at least let one build get far enough
along that it will finish the tika-server module before the other one gets
there.  As you point out, there is port contention in tika-server (all the
tests) and in the one (?) ForkParser test.
  I've been finding that some of the tests in TikaServerIntegrationTest are
flaky even on a single build, and that is a separate issue that I need to
pin down and fix.
  I don't _think_ jetty is doing something hidden under the hood, but we
definitely have port contention if you're running two builds in parallel.
Do you have any recommendations to fix this?
  Thank you for raising this!

       Best,

              Tim


On Sun, Nov 3, 2019 at 11:35 AM Tilman Hausherr <[email protected]>
wrote:

> I can't do concurrent builds of trunk and 1.* version on my pc. While I
> don't know if these are all the causes, I identified at least two reasons:
>
> ForkParserIntegrationTest.java:
>
> address=54321
>
> TikaServerIntegrationTest.java:
>
> INTEGRATION_TEST_PORT = "9999";
>
> It still fails for me after I changed the port of the trunk build to 9997.
> The trunk build now has this:
>
> org.junit.runners.model.TestTimedOutException: test timed out after 60000
> milliseconds
>     at
> org.apache.tika.server.TikaServerIntegrationTest.awaitServerStartup(TikaServerIntegrationTest.java:435)
>     at
> org.apache.tika.server.TikaServerIntegrationTest.testBaseline(TikaServerIntegrationTest.java:517)
>     at
> org.apache.tika.server.TikaServerIntegrationTest.testTimeout(TikaServerIntegrationTest.java:286)
>
> I looked into the log, there is "tika test client failed to connect to
> server with status: 404" many times until it gives up.
>
> I also tried with the browser, http://localhost:9997/tika  shows 404.
>
> Could it be that both jetty instances use something in common?
>
> Has this (not being able to run the builds on the same machine) been
> discussed before?
>
> Tilman
>

Reply via email to