Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-22060

Reader on the backing store is obtained twice in CachingContentStore

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Resolved
    • Affects Version/s: 5.2
    • Fix Version/s: ACS 201910-EA
    • Component/s: Repository
    • Security Level: external (External user)
    • Labels:
      None
    • Resolution Time Custom Field:
      3 weeks, 5 days, 20 hours, 11 minutes, 33 seconds

      Description

      Hi,

      When using the CachingContentStore and acquiring a reader, the first time a content is needed or if the content is missing from the cache it is obtained from the backing store.

      This is expected, but the actual result is that the reader is retrieved twice from the backing store (first time only the size is checked, to ensure quota is not exceeded) which can be improved.

      For your reference, here is the list of all invocations:
      1. at org.alfresco.repo.content.caching.CachingContentStore.cacheAndRead(CachingContentStore.java:201)
      2. at org.alfresco.repo.content.caching.CachingContentStore.attemptCacheAndRead(CachingContentStore.java:264)

      Regards,

      Nicolas

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  nicolasbarithel Nicolas Barithel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Date of First Response:

                    Structure Helper Panel