Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8885

ConsumeLockEntity without ConsumeDelete

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.2
    • Fix Version/s: 2.15.3, 2.16.0
    • Component/s: camel-jpa
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I think that condition at the beginning of the lock function is wrong:

      protected boolean lockEntity(Object entity, EntityManager entityManager) {
              if (!getEndpoint().isConsumeDelete() || !getEndpoint().isConsumeLockEntity()) {
                  return true;
              }
      ...
      

      If I wanna just select and then update entity I should set consumeDelete=false, but If so entity will newer be locked...

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              demenis Daniel Kowalewski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: