Skip to content

ReentrantLock cannot prevent concurrent updates if multi-process is using #5020

@quaff

Description

@quaff

JDBC Dao implementations introduced ReentrantLock to prevent concurrent updates now, but it only works for single instance, it doesn't work for remote chunked/partitioned step, and it is inefficient because it doesn't lock per entity, we should rely on optimistic locking only.

See #4795 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions