Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2660

Consider using Caffeine cache in DefaultTokenStateService

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.0, 1.6.0
    • None
    • Server
    • None

    Description

      This is a follow-up Jira of KNOX-2658: in the corresponding PR we agreed that's ok to remove in-memory lookup in the JDBC token state service implementation for expiration time and metadata (the 2 data that can be changed through a token's lifetime).

      However, in case of performance issues, we may want to add a more sophisticated in-memory cache in DefaultTokenStateService using Caffeine (like we do in other places within Knox) with a configurable entry TTL and documentation on the side effects of that change (e.g. introducing eventual consistency in HA environments).

      Attachments

        Activity

          People

            smolnar Sandor Molnar
            smolnar Sandor Molnar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: