Uploaded image for project: 'Opencast'
  1. MH-11378

Conditionally synchronize Archive Service's add mediapackge

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects versions: 1.6.3, 2.1.1
    • Fix versions: 2.3.0
    • Components: Backend Software

      Description

      Currently, the archive add() method is synchronized in the archive service to protect "oc_latest_version" flag on a mediapackage. But, this protection is only needed for concurrent archives of the same mediapackge Id. Archive's for different mediapackage Id's have their own oc_latest_version flag, so they do not need to be synchronized. Also, it is very unlikely that two mediapackges of the same mediapackageId to be archiving at the same time.

      Allowing more than one mediapackage to archive at the same time speeds up the archive step when multiple workflows are processing.

      The proposal is to keep track of actively archiving mediapackages and conditionally synchronize when two mediapackages have the same Id.

      https://bitbucket.org/opencast-community/matterhorn/src/24371827d47fcd8d2e7238319411b961ec3697d3/modules/matterhorn-archive-base/src/main/java/org/opencastproject/archive/base/ArchiveBase.java?at=r%2F2.1.x&fileviewer=file-view-default#ArchiveBase.java-172

        TestRail: Results

          Attachments

            Activity

              People

              • Assignee:
                jamesp James Perrin (Inactive)
                Reporter:
                karen Karen Dolan (Inactive)
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases