Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9551

Allow automatic system recovery when locks gets locked for an amount idle time

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.50.0.Final
    • None
    • None
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • ---
    • ---

      Currently if there is any logic that could break the lock/unlock exception it might leave the system unusable. This jiras tries to tackle that trying to detect when that happens based on automatic detection so the system can continue to work.
      This is the continuation of work in JBPM-9521

      Added new lock implementation that allows to unlock from another thread

      org.jbpm.runtime.manager.impl.lock.SelfReleaseRuntimeManagerLock
      

      Also I created a thread watcher attached to every runtime Manager that spawns a thread to watch every lock for a runtime manager.
      Two environment variables has been created

      org.kie.jbpm.lock.polling
      

      if equals to zero then it does not activate polling. greater to zero will check every interval if those locks have exceeded the maximum processing time.

      The maximum processing time is the max time a lock is considered that is not unlocked.

      org.kie.jbpm.lock.maxProcessingTime
      

              elguardian@gmail.com Enrique González Martínez (Inactive)
              elguardian@gmail.com Enrique González Martínez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: