You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/06/28 13:15:18 UTC

DO NOT REPLY [Bug 51447] New: Session type changes from Backup to Primary

https://issues.apache.org/bugzilla/show_bug.cgi?id=51447

             Bug #: 51447
           Summary: Session type changes from Backup to Primary
           Product: Tomcat 7
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Manager
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mashmk02@gmail.com
    Classification: Unclassified


Created attachment 27223
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27223
patch

Steps to reproduce:

(1) Start 3 Tomcat instances that are using BackupManager.

(2) Run 3 HTMLManagers corresponding to each node.

(3) Run web application that has distributable in its web.xml.

(4) Click the link of the number of sessions for this application.

(5) If the displayed session type is Backup, click the link of session id.
And return to sessions list page soon.
Then, the session type change to Primary.

When the session detail page is displayed, getSessionForNameAndId() calls
ctxt.getManager().findSession(), and findSession() calls session.get(id).
If the cluster is using BackupManager, "session" is instance of
LazyReplicatedMap. And LazyReplicatedMap.get() set session type to "primary". 

I thought the solutions of this issue.

(A) Not use findSession(). Retrieve session information from local map.
-> see attached patch

Or
(B) Write the note as follows to the sessions list page. 
"If you click the backup type's sessionid, then the type change to primary."

Regards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51447] Session type changes from Backup to Primary

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51447

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> 2011-06-28 16:22:33 UTC ---
Thanks for the report and the patch. A variation has been applied to 7.0.x and
will be in 7.0.17 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org