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

Cache in CachingBlobStore might grow beyond configured limit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.26.0
    • Component/s: blob, core
    • Labels:
      None

      Description

      It appears that depending on actual cache entry sizes, the CacheLIRS might grow beyond the configured limit.

      For RDBBlobStore, the limit is currently configured to 16MB, yet storing random 2M entries appears to fill the cache with 64MB of data (according to it's own stats).

      The attached test case reproduces this.

      (it seems this is caused by the fact that each of the 16 segments of the cache can hold 2 entries, no matter how big they are...)

        Attachments

        1. OAK-6303.diff
          3 kB
          Julian Reschke
        2. OAK-6303-test.diff
          1 kB
          Julian Reschke

          Activity

            People

            • Assignee:
              thomasm Thomas Mueller
              Reporter:
              reschke Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: