Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14861

Interrupting session expiration task on shutdown can leave orphaned entries in cache

    XMLWordPrintable

    Details

      Description

      Shutting down the server (or undeploying an application) currently performs an ExecutorService.shutdownNow(), which interrupts the session expiration task. If this task in the process of removing entries for an expired session, and the backing cache in non-transactional, this can result in stale cache entries which are no longer accessible.

      Instead we should use ExecutorService.shutdown(), and make the expiration task sensitive to shutdown state.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pferraro Paul Ferraro
              Reporter:
              pferraro Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: