Skip to content

Hibernate does not see update that was made on another thread #33206

@njr-11

Description

@njr-11

DataJPATestServlet.testEntitiesAsParameters updates an entity on another thread and tests that the update is visible to the current thread. EclipseLink can see it. Hibernate does not. Need to determine if the Data provider needs to do something to bypass the cache or if the test needs updates.

When the test is enabled, the error shows as

DataJPATestServlet.testEntitiesAsParameters: expected:<11.989999771118164> but was:<10.989999771118164>
at test.jakarta.data.jpa.web.DataJPATestServlet.testEntitiesAsParameters(DataJPATestServlet.java:1947)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at componenttest.app.FATServlet.doGet(FATServlet.java:80) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis bug is not present in a released version of Open Libertyteam:Zombie Apocalypse

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions