Rémy and Jean-Frederic, On 1/6/21 06:20, Rémy Maucherat wrote:
On Wed, Jan 6, 2021 at 11:58 AM jean-frederic clere <[email protected]> wrote:Hi, While testing the tomcat clustering I have noted that at the start from time to the attribute replication is failing. While debugging I have the messages: +++ 05-Jan-2021 10:25:07.046 FINE [Tribes-Task-Receiver[Catalina-Channel]-6] org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA Manager [localhost#/demo-1.0]: received session delta for unknown session [596AEB7A68DE2D8F6B9819D4F4F55CDA] 05-Jan-2021 10:25:07.045 FINE [Tribes-Task-Receiver[Catalina-Channel]-5] org.apache.catalina.ha.session.DeltaManager.messageReceived Manager [localhost#/demo-1.0]: Received SessionMessage of type=[SESSION-MODIFIED] from [org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 128, 2, 182}:4000,{10, 128, 2, 182},4000, alive=10037, securePort=-1, UDP Port=-1, id={-87 87 4 -12 89 -46 96 94 12 20 -103 -109 -56 120 -16 74 }, payload={}, command={}, domain={}]] 05-Jan-2021 10:25:07.046 FINE [Tribes-Task-Receiver[Catalina-Channel]-5] org.apache.catalina.ha.session.DeltaManager.handleSESSION_CREATED Manager [localhost#/demo-1.0]: received session created message for session [596AEB7A68DE2D8F6B9819D4F4F55CDA] +++ It looks like the delta is processed before the session creation and it is ignored. When using the channelSendOptions="6" I am NOT getting the "received session delta for unknown session" and the stuff is working perfectly. Should we change the default for channelSendOptions to 6? - the actual value is 8 -The documentation for the values is here: http://tomcat.apache.org/tomcat-10.0-doc/config/cluster.html#SimpleTcpCluster_Attributes So the default is the fastest, but if it's not reliable for many reasonable use cases it may not be a good idea.
I would always recommend the most stable and reliable defaults for any system. If an admin wants to relax those defaults to e.g. get better performance with some trade-offs, at least they make that change (theoretically) with the knowledge of those trade-offs.
At some point, I think we should enable strict servlet compliance by default with a forthcoming major release like 10.1 or whatever.
-chris --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
