File: 0004-corrupted-worker-activation-status.patch

package info (click to toggle)
libapache-mod-jk 1%3A1.2.37-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 9,376 kB
  • ctags: 6,489
  • sloc: ansic: 54,017; xml: 13,906; sh: 9,196; java: 1,921; perl: 1,004; makefile: 203; awk: 59
file content (27 lines) | stat: -rw-r--r-- 1,116 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Worker activation state corrupted when using jkmanager
 We use jkmanager to selectively disable (DIS state) workers to do 
 rolling releases. This worked fine in Squeeze (mod_jk 1.2.30),
 but does not work properly anymore in Wheezy (mod_jk 1.2.37). The 
 effect is: When I set a worker to disabled, it flips back and forth
 between disabled an active, and the load on the worker does not
 decrease as it should. Same with stopped. Happens on multiple
 Apache servers independently.
 .
 The following change from the upcoming 1.2.38 release fixes the
 problem at least for our setup.
 .
 <URL:http://tomcat.10.x6.nabble.com/mod-jk-worker-activation-not-working-anymore-in-1-2-37-td4999956.html>
Author: David Gubler <dg@doodle.com>
Last-Update: 2013-08-12
Bug: http://bugs.debian.org/cgi-bin/711934
--- a/native/common/jk_status.c
+++ b/native/common/jk_status.c
@@ -3647,7 +3647,7 @@
                 }
             }
             if (sync_needed == JK_TRUE) {
-                wr->sequence = 0;
+                wr->sequence = -1;
                 if (!rc)
                     rc = 3;
             }