tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49531] New: singlesignon failover not working on DeltaManager/cluster upon shutdown
Date Wed, 30 Jun 2010 21:03:54 GMT

           Summary: singlesignon failover not working on
                    DeltaManager/cluster upon shutdown
           Product: Tomcat 6
           Version: 6.0.26
          Platform: HP
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Cluster

Created an attachment (id=25672)
 --> (

Tomcat 6.0.18, 20, 24, 26
OS:  Linux  2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64 x86_64
x86_64 GNU/Linux
Jdk 1.6.0_20

When the node shuts down and destroys the context, singlesignon removes
sessions created for the context.  Then, DeltaSession.expire() method is called
and then calls super.exire() method.   This sequence of events signals to the
listeners and one of listeners sends the message to SimpleTpcCluster that
propagates the message to other nodes in the same cluster.  Therefore, sso
session will be removed from other nodes upon shutdown.

I would like to request an enhancement that both sso session and regular
session identifiers should be retained on other nodes upon the node shutdown.

== ==
    public void expire(boolean notify, boolean notifyCluster) {
        if (expiring)
        String expiredId = getIdInternal();

        if(expiredId != null && manager != null &&
           manager instanceof DeltaManager) {
           DeltaManager dmanager = (DeltaManager)manager;           
              CatalinaCluster cluster = dmanager.getCluster();
              ClusterMessage msg = dmanager.requestCompleted(expiredId, true);
              if (msg != null) {
                 if(dmanager.doDomainReplication()) {
                 } else {


        if (notifyCluster) {
            if (log.isDebugEnabled())
                                       new Boolean(isPrimarySession()), 
            if ( manager instanceof DeltaManager ) {
                ( (DeltaManager) manager).sessionExpired(expiredId);

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message