Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-24837

Resolve FinderCache cache key hash collision

    Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed

      Description

      This is a hybrid solution.

      For cache results inside FinderCache who can identify itself (entity and entity list), we remain using hash value as key, but a post verification is imposed after retrieving values from cache to filter out conflict results.

      For cache results who can not identify itself (statistical info like count and existence flag), we by default switching to simple cache key generator which generates full qualified key name.

      In practice, statistical info hash collision general is less harmful than entity value conflict and it is much difficult to create a collision on purpose(the key members are general not visible to end user). But to ensure safety, we default to full key, with a price of old generation expansion, if you can stand for collision risky for statistical info, you can still switch back to hash keys by yourself.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              shuyang.zhou Shuyang Zhou
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 28 weeks, 5 days ago

                  Packages

                  Version Package
                  6.0.X EE
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2