Andrea,

the test Travis build passed so I applied the fix to master, 2.12.x, and 2.11.x. I also went through open pull requests, found three which had failed with the timeout error, and closed-reopened each to start a new Travis build the latest settings.

GeoTools may also be vulnerable. The lack of -U used on Travis might only reduce the risk. If anyone sees one of these timeouts "No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.", please let everyone know.

I will report the bug to the Maven maintainers.

Kind regards,
Ben.

On 18/12/17 22:56, Ben Caradoc-Davies wrote:
Andrea,

I have not yet filed a bug report.

I am testing a workaround to download and use Maven 3.5.0:
https://github.com/geoserver/geoserver/commit/a78d7c4711bdde1c853df523f5919a95cadd9359

The test Travis build is running on the debug-travis branch:
https://travis-ci.org/geoserver/geoserver/builds/317993402

Kind regards,
Ben.

On 18/12/17 21:50, Andrea Aime wrote:
Hi Ben,
thanks for the investigation!
Did you open a bug report?
Also, I'm wondering, can we use a custom version of Maven?

Cheers
Andrea


On Mon, Dec 18, 2017 at 9:42 AM, Ben Caradoc-Davies <[email protected]>
wrote:

I have been able to reproduce build hangs locally in src/community with:

mvn -B -T4 -U -Prelease -PcommunityRelease -DskipTests clean install

The hangs occur *only* with Maven 3.5.2, -U, and -T4.

- Maven 3.5.0 -> no hang
- Single threaded (no -T) - > no hang
- No -U (so reduced downloads) -> no hang

The latest Travis release updated to Maven 3.5.2, causing the problem.
Travis is blameless, and my endless tinkering with travis_wait and other
settings in .travis.yml was to no avail. This is a Maven problem.

jstack shows clear evidence of a deadlock during multi-threaded dependency
resolution (attached).

The build eventually recovers (some of the locks are a TIMED__WAIT).

GeoTools does not use -U because it has no SNAPSHOT dependencies and is
thus unaffected.

Removing -T is not an option because we have seen hangs in the main build
as well and the single-threaded build is too slow.

Kind regards,
Ben.


On 18/12/17 12:41, Ben Caradoc-Davies wrote:

We are not the only users having problems:
https://github.com/travis-ci/travis-ci/issues

On 18/12/17 12:29, Ben Caradoc-Davies wrote:

The Travis failures we are experiencing started with the rollout of new
trusty images about six days ago:
https://blog.travis-ci.com/2017-12-12-new-trusty-images-q4-launch

Kind regards,



--
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel






--
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to