Skip to content

Query about Jdempotent States #34

@IOhacker

Description

@IOhacker

Jdempotent supports the following states and conditions?

  1. unlocked - lock doesn't exist and can be locked
    locked - lock exists and is used by a process to guard a write
    i. typically we set a ttl on the lock according to the amount of time the write would take
    ii. i.e. DB write in JTA transaction of 120 seconds would use a 120 second ttl
    iii. if the lock doesn't transition to failed/committed in this time the lock is expired
  2. expired - lock expired TTL (vm, jvm, thread error)
    i. a retry can transition this from expired to locked
  3. failed - the owning process released with error (no DB connection, etc)
    i. a retry can transition this from failed to locked
  4. committed - write process completed all work, this is an immutable state

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions