[infinispan-issues] [JBoss JIRA] (ISPN-10879) PersistenceIT random failures
Dan Berindei (Jira)
issues at jboss.org
Fri Nov 1 03:18:00 EDT 2019
[ https://issues.jboss.org/browse/ISPN-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13807033#comment-13807033 ]
Dan Berindei commented on ISPN-10879:
-------------------------------------
I couldn't reproduce the test failure locally, but it fails almost every time in CI, e.g.
https://ci.infinispan.org/job/Infinispan/job/master/1563/testReport/junit/org.infinispan.server.persistence/PersistenceIT/org_infinispan_server_persistence_PersistenceIT/
> PersistenceIT random failures
> -----------------------------
>
> Key: ISPN-10879
> URL: https://issues.jboss.org/browse/ISPN-10879
> Project: Infinispan
> Issue Type: Bug
> Reporter: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
>
> {noformat}
> java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.persistence.PersistenceIT
> {noformat}
> The reason for the error is that {{PersistenceIT}} has a static final field {{InfinispanServerRule SERVERS}}, and the {{InfinispanServerRule}} constructor may throw an exception. The first time the JVM tries to initialize the {{PersistenceIT}} class, the caller gets an {{ExceptionInInitializerError}}, but further attempts get the {{NoClassDefFoundError}} instead. And since this is all inside Surefire/JUnit, the initial {{ExceptionInInitializerError}} is ignored somewhere without being logged.
> To help debugging via logs, the constructor should be trivial, and the {{serverDriver}} should only be initialized in the {{apply()}} method.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list