DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33558

           Summary: When the master node is enter again, only the first
                    request is not replicated.
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina:Cluster
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Whenever I call a JSP, a session is created by the master node(i.e. the node 
receiving the HTTP req) and replicated to the slave node. 
And when the master node is down, the request failover to the slave node.
However, when the master node is enter again in my cluster and the request 
failback to the master node, only the first request is not replicated to the 
slave node.
I debug tomcat, and found that when the first repuest calles 
DeltaSession.setAttribute(), DeltaSession.deltaRequest is null(not init)!
Therefore, I made the following patches. 

--- DeltaManager.java.org   2004-08-29 09:14:12.000000000 +0900
+++ DeltaManager.java   2005-02-14 20:45:21.000000000 +0900
@@ -455,6 +455,7 @@
                     session.access();
                     //make sure that the session gets ready to expire if 
needed
                     session.setAccessCount(0);
+                    session.resetDeltaRequest();
                     sessions.put(session.getId(), session);
                 }
             } catch (ClassNotFoundException e) {

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to