Skip to content

insertAll leaves inconsistent state with one entity inserted after the second entity fails on Hibernate #33200

@njr-11

Description

@njr-11

Entity o5 is already inserted. Entity o7 is not. The test attempts the following and expects an EntityExistsException (due to o5),

                    orders.insertAll(List.of(o7, o5));

However, entity o7 appears to be inserted anyway, as indicated by a later attempt at inserting entity o7 which fails,

        List<PurchaseOrder> inserted = orders.insertAll(List.of(o7, o8));

see DataJPATestServlet.testEntitiesAsParameters

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