Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5935

AbstractSharedCachingDataStore#getRecordIfStored should use the underlying cache.get

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.1, 1.6.2, 1.8.0
    • Component/s: blob
    • Labels:
      None

      Description

      The AbstractSharedCachingDataStore#getRecordIfStored can possibly use cache.get(dataIdentifier.toString()) instead of cache.getIfPresent(dataIdentifier.toString()) to load the binary in the cache from the backend,
      The access pattern has to be evaluated but possibly we always do a getStream() after retrieving a record. The GC code already bypasses this with OAK-4573.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amitjain Amit Jain
                Reporter:
                amitjain Amit Jain
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: