UKGovLD / registry-core

Linked data registry - core application and example UI
https://github.com/UKGovLD/registry-core/wiki
Apache License 2.0
23 stars 9 forks source link

Intermittent test failures #148

Open der opened 2 years ago

der commented 2 years ago

The full test suite has random failures. Most runs are clean but occasionally get apparently non-deterministic failures in one or more of:

Typically these include an log of an NPE in: org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$FormDataParamValueFactory.provide

der commented 2 years ago

Updating jersery to a newer version removes these NPEs but the same tests exhibit similar random failures suggesting that the FormData NPE is disguising one or more real race conditions.

Note that jersey 2.26 introduced non-backward compatible changes so the the most recent version that supports a reasonable upgrade path is 2.25.1. Even with 2.25.1 the corresponding jersey-guava packaging must be added as an explicit dependency. See jersey-update branch in each of lib, appbase and registry-core.