You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/01/05 11:27:03 UTC

[Bug 64051] New: mod_jk set_session_cookie not sending new cookie after node failover for sticky session

https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

            Bug ID: 64051
           Summary: mod_jk set_session_cookie not sending new cookie after
                    node failover for sticky session
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
          Assignee: bugs@httpd.apache.org
          Reporter: dotin.insurance@gmail.com
  Target Milestone: ---

Hi

Sorry I couldn't find mod_jk in components.

I have set up set_session_cookie and add a custom cookie for sticky session
management. It's working fine until I stop a specific node. The balancer would
redirect me to new node but it won't set new node name to the cookie.

This is what documentation says:

"Especially after a node failover we will send a new cookie to switch
stickyness to the new node."

But it is not working.

This is mod_jk log trace:

[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [debug]
service::jk_lb_worker.c (1270): service sticky_session=1 id='.node1'
[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [trace]
get_most_suitable_worker::jk_lb_worker.c (1037): enter
[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [debug]
get_most_suitable_worker::jk_lb_worker.c (1078): searching worker for partial
sessionid .node1
[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [debug]
get_most_suitable_worker::jk_lb_worker.c (1086): searching worker for session
route node1
[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [debug]
get_most_suitable_worker::jk_lb_worker.c (1136): found best worker node2
(node2) using method 'Busyness'
[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [trace]
get_most_suitable_worker::jk_lb_worker.c (1139): exit
[Sun Jan 05 14:02:35.126 2020] [25699:140105601013504] [debug]
service::jk_lb_worker.c (1315): service worker=node2 route=node2 failover=false



I red source of file "jk_lb_worker.c" and I think the s->sticky is setting
wrong value so when the node fails over the new cookie is not sending to
client.

Hope to hear from you soon.

Sincerely,

Mohsen

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64051] mod_jk set_session_cookie not sending new cookie after node failover for sticky session

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@httpd.apache.org       |dev@tomcat.apache.org
          Component|All                         |mod_jk
            Version|2.5-HEAD                    |unspecified
            Product|Apache httpd-2              |Tomcat Connectors

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
mod_jk is not part of httpd itself.
Re-affecting it to "Tomcat Connectors" -> "mod_jk"

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64051] mod_jk set_session_cookie not sending new cookie after node failover for sticky session

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

Mohsen <do...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dotin.insurance@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org