Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1099

netui's DeferredSessionStorageHandler should persist session attributes atomically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • v1m1, 1.0, 1.0.1, 1.0.2
    • 1.0.2
    • NetUI
    • None

    Description

      This bug tracks the conversation going on in dev@beehive:

      http://mail-archives.apache.org/mod_mbox/beehive-dev/200603.mbox/%3ce9ac83540603290941p3c614c9dn2c65f57dec8dfafe@mail.gmail.com%3e

      about a threading problem with NetUI's DeferredSessionStorageHandler's acceptChanges() method. This method performs two updates to the HttpSession to first apply attributes to the session and second step to ensure that the appropriate attributes failover in a clustered server environment. When both of these operations execute and interact with the HttpSession, it's possible to have values changed in the session between accepting changes and ensuring failover of those attributes.

      When this happens, the ensure failover call can cause the destroy part of a Page Flow lifecycle to be invoked on a Page Flow. In some rare circumstances, this can result in deadlock.

      I've actually got a fix for this that will go in shortly...

      Attachments

        Activity

          People

            ekoneil Edward O'Neil
            ekoneil Edward O'Neil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: