OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-3664

Introduce context based model persisting locking mechansim

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: openengsb-3.0.0.M1
    • Component/s: framework
    • Labels:
      None
    • Changelog:
      Hide
      Added to the PersistInterface 3 methods which overload already existing methods, namely commit, forceCommit and revertCommit. For these 3 methods a second one each was added with the expected context head revision. If this revision does not meet the actual one, an EKBConcurrentException is thrown.

      Additionally, if a process writes to the EDB through the PersistInterface, a mechanism was added which prevent a concurrent writing into the context, the previous process was writing. This feature can be activated and deactivated with the configuration file org.openengsb.ekb.cfg under the key persistInterfaceLockingMode.
      Show
      Added to the PersistInterface 3 methods which overload already existing methods, namely commit, forceCommit and revertCommit. For these 3 methods a second one each was added with the expected context head revision. If this revision does not meet the actual one, an EKBConcurrentException is thrown. Additionally, if a process writes to the EDB through the PersistInterface, a mechanism was added which prevent a concurrent writing into the context, the previous process was writing. This feature can be activated and deactivated with the configuration file org.openengsb.ekb.cfg under the key persistInterfaceLockingMode.

      Description

      *) make the locking configurable through config file
      *) add EKB Commit and Revert functionality an additional excepted parent field (contains the revision of the last commit in the corresponding context)
      *) if the revisions match, everything is fine. If not, throw an exception which states that the context is locked by username (locking user)

        Gliffy Diagrams

          Issue Links

          Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your JIRA administrators.

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Felix Mayerhuber
                Reporter:
                Felix Mayerhuber
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: