Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-51

Concurrency: locking ImageGenerationJobs for same node

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 2.0.1
    • None
    • None
    • None

    Description

      See TODOs in info.magnolia.imaging.caching.ImageGenerationJob. This object is used as a key in the computing map of CachingImageStreamer. It's assuming that the parameter of the job (as provided by ParameterProvider) has a correct implementation of equals()/hashCode(). This is not the case for DefaultContent.

      Possible solutions:

      • Make this compare the ParameterProvider instances instead of the parameter itself, so that ContentParameterProvider.equals() would compare, for instance, the uuid of its parameter.
      • Wrap the nodes into a wrapper whose equals/hashCode methods use the uuid or other attribute for comparison

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR