[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2098) Last-login date feature creates deadlocks

Thomas Heute (JIRA) jira-events at lists.jboss.org
Thu Jul 31 11:16:27 EDT 2008


Last-login date feature creates deadlocks
-----------------------------------------

                 Key: JBPORTAL-2098
                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2098
             Project: JBoss Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Portal Core
    Affects Versions: 2.7.0 Beta1, 2.7.0 Alpha1, 2.6.6 Final, 2.6.5 SP1
            Reporter: Thomas Heute
            Assignee: Sohil Shah
             Fix For: 2.7.0 CR1 , 2.6.7 Final


The code in the User Interceptor that set the last time a user was logged is creating locks.

In fact threads are trying to acquire a write lock on the user.
I disabled it for a customer, now we need a generic solution.

I think to remember that the reason it is done that way is that someone wanted the date when the session stops instead of when it starts.

Sohil, could you have a look and either:
 - keep that feature but done in a different way (i don't see how)
 - record the last login date (instead of last logout) i think this is acceptable in many scenario, anyway the other solution is not perfect neither, most people never log out so it records the session timeout date.
- move the code to another interceptor so that it can be easily turned off and turn it off by default in 2.7

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list