-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
7.1.2.GA
-
None
-
-
-
-
-
-
+
-
With EAP 7, the jvmRoute is now forced to point to the original owner of the session, even with a repl cache. With a repl cache on EAP 6, the jvmRoute would be set to the current instance. This would be the desired behavior.
While pointing to the original owner is a potential optimization for a dist cache, there doesn't seem to be any real reason or benefit to do this with a repl cache. This breaks expected stickiness behavior if anyone removes a single instance from their load balancer with a repl cache.
It looks like this new route behavior for repl cache comes from the InfinispanRouteLocator:
2018-05-24 11:12:31,224 INFO [stdout] (default task-1) org.wildfly.clustering.web.infinispan.session.InfinispanRouteLocator.locate(InfinispanRouteLocator.java:57) 2018-05-24 11:12:31,224 INFO [stdout] (default task-1) org.wildfly.clustering.web.undertow.session.DistributableSessionIdentifierCodec.encode(DistributableSessionIdentifierCodec.java:48) 2018-05-24 11:12:31,224 INFO [stdout] (default task-1) org.wildfly.extension.undertow.session.CodecSessionConfig.findSessionId(CodecSessionConfig.java:60) 2018-05-24 11:12:31,224 INFO [stdout] (default task-1) io.undertow.servlet.spec.ServletContextImpl$ServletContextSessionConfig.findSessionId(ServletContextImpl.java:1130) 2018-05-24 11:12:31,224 INFO [stdout] (default task-1) org.wildfly.clustering.web.undertow.session.DistributableSessionManager.getSession(DistributableSessionManager.java:156) 2018-05-24 11:12:31,224 INFO [stdout] (default task-1) io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:773) 2018-05-24 11:12:31,224 INFO [stdout] (default task-1) io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:848)
N.B.
there doesn't seem to be any real reason or benefit to do this with a repl cache
This is not true. There is a genuine reason for directing subsequent requests to the primary owner for replicated caches. Cache entry locking is coordinated by the primary owner of a given entry - thus, even for replicated caches, requests are most optimally handled by the primary owner.
- incorporates
-
WFLY-5550 Formalize web session clustering modules into a proper subsystem
- Closed
- is related to
-
JBEAP-5869 [GSS](7.0.z) Using Infinispan in Distribution Mode for JBossWeb breaks session stickiness
- Closed
-
JBEAP-6078 [GSS](7.2.z) Using Infinispan in Distribution Mode for JBossWeb breaks session stickiness
- Closed