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

HttpSessionListener.sessionDestroyed event can deadlock if it attempts write operations on a session

XMLWordPrintable

      Infinispan listeners are intentionally non-transactional - and thus should never attempt to perform cache writes.
      In order to trigger the requisite session listeners, session destroy events need to lookup the cache entries relevant to a given session via SessionFactory.findValue(..). However, if there are entries missing (e.g. a creation meta data entry w/out a access meta data entry), this method will attempt to purge the orphaned entries. This should never be done within the context of a session destroy event.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: