Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-1525

[GHI#29073] Use cache.compute() method to improve the replace retry loop

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description

      The Map.replace() returns a boolean to signal if the replaced succeed or not. This is inefficient because KC needs to perform a read operation to fetch the value again.

      Using the compute() method, we can retrieve the most recent version and we can do the replacement based on version instead of equality.

      Discussion / Motivation

      This should fix the root cause for the symptoms observed in #28466

            Unassigned Unassigned
            pvlha Pavel Vlha
            Keycloak SRE
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: