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

Expired tokens are not removed from the in-memory cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.6.0
    • Server
    • None

    Description

      As a side effect of KNOX-2658, the following error is displayed in the logs and the given token remains in the in-memory cache:

      2021-10-08 09:40:32,502 INFO  token.state (JDBCTokenStateService.java:evictExpiredTokens(216)) - Removing 1 expired token(s) from the database: 82ef4c45...e2b047162a35
      2021-10-08 09:40:32,515 ERROR token.state (DefaultTokenStateService.java:getExpiredTokens(379)) - Failed to evict expired token 82ef4c45...e2b047162a35 : org.apache.knox.gateway.services.security.token.UnknownTokenException: Unknown token: 82ef4c45...e2b047162a35
      

      Note: the token was successfully removed from the DB.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m