Skip to content

Hibernate ORM enhanced field access sometimes (randomly?) returning null #42479

@yrodiere

Description

@yrodiere

One test in the Hibernate ORM extension is failing from time to time and being marked as flaky: io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.testFieldAccess

We get this error:

java.lang.AssertionError: 

Expecting actual not to be null
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest$FieldAccessEnhancedDelegate$1.assertValue(PublicFieldAccessInheritanceTest.java:132)
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.doTestFieldAccess(PublicFieldAccessInheritanceTest.java:91)
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.testFieldAccess(PublicFieldAccessInheritanceTest.java:52)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.test.QuarkusUnitTest.runExtensionMethod(QuarkusUnitTest.java:499)

It seems it's been flaky since at least April 16, see the test history (loading will take a while): https://ge.quarkus.io/scans/tests?search.relativeStartTime=P900D&search.timeZoneId=Europe%2FParis&tests.container=io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest&tests.test=testFieldAccess#

The first PR to see this test as flaky is #40329 (formerly #40160), and that PR seems way too related to the test (bytecode enhancement) for this to be a coincidence... @Sanne this may be a bug caused by the changes in that PR?

Originally mentioned here:

          @yrodiere @marko-bekhta the flaky test is a bit concerning here ^

Originally posted by @gsmet in #42455 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions