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

Imaging test broken on Jenkins

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.4.3
    • None
    • None
    • Maintenance 2, Maintenance 3, Maintenance 4
    • 1

      info.magnolia.imaging.caching.CachingImageStreamerRepositoryTest#requestForSimilarUncachedImageOnlyGeneratesItOnce started to fail after I recreated the jobs. It doesn't seem to be random, nor an easy fix.

      Stacktrace https://jenkins.magnolia-cms.com/job/modules/job/imaging/job/master/3/testReport/info.magnolia.imaging.caching/CachingImageStreamerRepositoryTest/requestForSimilarUncachedImageOnlyGeneratesItOnce/


      Did investigate and I guess I found the cause. The test reveals a possible race condition where a thread tries to fetch a generated cached image before the latter is properly stored in JCR (see also https://git.magnolia-cms.com/projects/MODULES/repos/imaging/browse/magnolia-imaging/src/main/java/info/magnolia/imaging/caching/CachingImageStreamer.java#187)

        Acceptance criteria

              fgrilli Federico Grilli
              mmichel Maxime Michel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR