Bug 51736

Summary: Make rpcTimeout configurable in BackupManager.
Product: Tomcat 6 Reporter: Keiichi Fujino <kfujino>
Component: ClusterAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: default   
Hardware: All   
OS: All   

Description Keiichi Fujino 2011-08-29 10:26:09 UTC
Default rpcTimeout that BackupManager sets to AbstractReplicatedMap is 15000 msec.
This is not configurable.

When receiving MapMessage.MSG_START (and after a new member is added), 
publishEntryInfo is called for all sessions where primary and backup node are not included. 
And, the backup node is set to the session.

When only one Tomcat starts in cluster, publishEntryInfo will be called for all sessions. 
As a result, the RPC message has the possibility of the timeout. 

When acquiring session from restarting Tomcat, 
warning of "Unable to retrieve remote object for key:XXX" is logged.
And the session cannot be continued. 

I make rpcTimeout configurable in BackupManager.
Additionally, if RPC message timeouted in AbstractReplicatedMap#broadcast, add warning message.

Best Regards.
Comment 1 Keiichi Fujino 2011-08-29 11:17:32 UTC
Fixed in 7.0.x and will be in 7.0.21 onwards.
Proposed for 6.0.x.
Comment 2 Keiichi Fujino 2011-08-31 02:03:53 UTC
Fixed in 6.0.x and will be in 6.0.34 onwards.