Hi,
Java 11 builds keep on being plagued by random failures, but lately, they
are almost guaranteed.
The starting point for the build fail is not always the same, it happens in
different modules, but once
there is an error, everything falls apart.

See for example this build:
https://build.geoserver.org/view/geotools/job/geotools-java11/489/consoleFull
After the errors in mosaic, the log of the feature-pregeneralized module,
while not reporting errors,
state the following:

[INFO] *--- maven-resources-plugin:3.1.0:resources (default-resources)
@ gt-feature-pregeneralized ---
*[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/tmp/jenkins-c559144f/workspace/java11/geotools/modules/plugin/feature-pregeneralized/src/main/resources
[INFO]
[INFO] *--- maven-compiler-plugin:3.8.0:compile (default-compile) @
gt-feature-pregeneralized ---
*[INFO] No sources to compile
[INFO]

[INFO] *--- maven-resources-plugin:3.1.0:testResources
(default-testResources) @ gt-feature-pregeneralized ---
*[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/tmp/jenkins-c559144f/workspace/java11/geotools/modules/plugin/feature-pregeneralized/src/test/resources


This is however not true, there definitely sources, and there are files
there:
https://github.com/geotools/geotools/tree/84d6dc79f544430bdb6bdec7fa3a7fb89bb65229/modules/plugin/feature-pregeneralized/src/main/resources
https://github.com/geotools/geotools/tree/84d6dc79f544430bdb6bdec7fa3a7fb89bb65229/modules/plugin/feature-pregeneralized/src/test/resources

So it looks like the file system suddenly gives up, or at least, Java is
not able to see it any longer.
I tried to see if there is a "too many open files" error somewhere, but
could not find any.

Looking at the errors, it seems to be affecting both surefire (which is
running in its own separate JVMs) and the main
maven JVM, which is running compiles and the like, indeed, right after the
failures, it also attempts re-downloading dependencies
that were already downloaded, like jackson jars, see for example this build
console output, search for jackson-core 2.9.10 (there
is also a 2.9.6 in the build, used by maven itself), you can see it being
succesfully downloaded at the beginning, while
building gt-main, and then after the first failure, it tries to re-download
it again, as if the maven local repository got emptied somehow.

The GeoTools failures to build are likely affecting also GeoServer, as a
revert of a commit that is causing a concurrency failure in the WFS tests
never got baked into a java 11 jar for the GeoServer java 11 build to use.

I'm not seeing a smoking gun, but maybe the above description may trigger a
light in some of your reading this message.
What would cause this, that does not happen with a Java 8 build.

Btw, I've noticed that the Java 11 build is not the latest, it's a 11.0.3
while 11.0.4 is out already.. checked the changelog
but don't see anything file related:
https://www.oracle.com/technetwork/java/javase/2col/11-0-4-oracle-bugfixes-5480115.html

Cheers
Andrea

----
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.

== Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di
Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584
1660272 mob: +39 339 8844549 http://www.geo-solutions.it
http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to