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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

Christophe JAILLET  changed:

   What|Removed |Added

   Assignee|b...@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  ---
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

--- Comment #2 from Mohsen  ---
Sorry, my bad. I would repost it there.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64052

Bug ID: 64052
   Summary: mod_jk set_session_cookie not sending new cookie after
node failover for sticky session
   Product: Tomcat Connectors
   Version: 1.2.46
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: mod_jk
  Assignee: dev@tomcat.apache.org
  Reporter: dotin.insura...@gmail.com
  Target Milestone: ---

Hi

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 read 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.
Also I tested this behaviour in both 1.2.43 and 1.2.46 versions.
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64052

Mohsen  changed:

   What|Removed |Added

 CC||dotin.insura...@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64052

Mohsen  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|NEW |RESOLVED

--- Comment #1 from Mohsen  ---


*** This bug has been marked as a duplicate of bug 64051 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64051

--- Comment #3 from Mohsen  ---
*** Bug 64052 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2020-01-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64052

Mohsen  changed:

   What|Removed |Added

 Resolution|DUPLICATE   |CLOSED

--- Comment #2 from Mohsen  ---
Sorry My bad again :(
I thought I should repost this bug in tomcat connectors product again.
This bug is duplicate of 64051.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org