tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46337] New: real worker name is wrong
Date Thu, 04 Dec 2008 13:00:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46337

           Summary: real worker name is wrong
           Product: Tomcat Connectors
           Version: 1.2.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mashmk02@gmail.com


Created an attachment (id=22988)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22988)
patch for jk_lb_worker.c

I am using one lb worker with two sub workers. The name of sub workers are
'ajp13w' and 'ajp13w2'.
The format of the request log is as follows:
JkRequestLogFormat "%w(%R) %V %T"

When the failover occurred in mod_jk 1.2.22, the real worker name output to the
request log was 'ajp13w2'.
However, when the failover occurred in mod_jk 1.2.27, the real worker name was
'ajp13w'.

Because "s->route" is not NULL when the failover occurs, it is not overwrited
in a new worker name. 

jk_lb_worker.c
L1128
            if (!s->route)
                s->route = rec->route;

Log of mod_jk 1.2.22:
-----
[Thu Dec 04 13:33:29 2008] [25987:13664] [info]  init_jk::mod_jk.c (2743):
mod_jk/1.2.22 initialized
[Thu Dec 04 13:33:29 2008] [25988:13664] [info]  init_jk::mod_jk.c (2743):
mod_jk/1.2.22 initialized
[Thu Dec 04 13:34:04 2008] [25989:18752] [info] jk_open_socket::jk_connect.c
(451): connect to 172.20.140.5:8009 failed (errno=115)
[Thu Dec 04 13:34:04 2008] [25989:18752] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to
(172.20.140.5:8009) (errno=115)
[Thu Dec 04 13:34:04 2008] [25989:18752] [info]
ajp_send_request::jk_ajp_common.c (1273): (ajp13w) error connecting to the
backend server (errno=115)
[Thu Dec 04 13:34:04 2008] [25989:18752] [info] ajp_service::jk_ajp_common.c
(1941): (ajp13w) sending request to tomcat failed,  recoverable operation
attempt=1
[Thu Dec 04 13:34:09 2008] [25989:18752] [info] jk_open_socket::jk_connect.c
(451): connect to 172.20.140.5:8009 failed (errno=115)
[Thu Dec 04 13:34:09 2008] [25989:18752] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to
(172.20.140.5:8009) (errno=115)
[Thu Dec 04 13:34:09 2008] [25989:18752] [info]
ajp_send_request::jk_ajp_common.c (1273): (ajp13w) error connecting to the
backend server (errno=115)
[Thu Dec 04 13:34:09 2008] [25989:18752] [info] ajp_service::jk_ajp_common.c
(1941): (ajp13w) sending request to tomcat failed,  recoverable operation
attempt=2
[Thu Dec 04 13:34:09 2008] [25989:18752] [error] ajp_service::jk_ajp_common.c
(1953): (ajp13w) Connecting to tomcat failed. Tomcat is probably not started or
is listening on the wrong port
[Thu Dec 04 13:34:09 2008] [25989:18752] [info] service::jk_lb_worker.c (1098):
service failed, worker ajp13w is in error state
[Thu Dec 04 13:34:09 2008] wlb(ajp13w2) localhost 10.007632
---

Log of mod_jk 1.2.27:
-----
[Thu Dec 04 15:27:22.494 2008] [28187:161211744] [info] init_jk::mod_jk.c
(3020): mod_jk/1.2.27 initialized
[Thu Dec 04 15:27:22.509 2008] [28188:161211744] [info] init_jk::mod_jk.c
(3020): mod_jk/1.2.27 initialized
[Thu Dec 04 15:27:33.773 2008] [28190:1123916096] [info]
jk_open_socket::jk_connect.c (593): connect to 172.20.140.5:8009 failed
(errno=115)
[Thu Dec 04 15:27:33.773 2008] [28190:1123916096] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to
(172.20.140.5:8009) (errno=115)
[Thu Dec 04 15:27:33.773 2008] [28190:1123916096] [error]
ajp_send_request::jk_ajp_common.c (1467): (ajp13w) connecting to backend
failed. Tomcat is probably not started or is listening on the wrong port
(errno=115)
[Thu Dec 04 15:27:33.773 2008] [28190:1123916096] [info]
ajp_service::jk_ajp_common.c (2407): (ajp13w) sending request to tomcat failed
(recoverable), because of error during request sending (attempt=1)
[Thu Dec 04 15:27:38.874 2008] [28190:1123916096] [info]
jk_open_socket::jk_connect.c (593): connect to 172.20.140.5:8009 failed
(errno=115)
[Thu Dec 04 15:27:38.875 2008] [28190:1123916096] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to
(172.20.140.5:8009) (errno=115)
[Thu Dec 04 15:27:38.875 2008] [28190:1123916096] [error]
ajp_send_request::jk_ajp_common.c (1467): (ajp13w) connecting to backend
failed. Tomcat is probably not started or is listening on the wrong port
(errno=115)
[Thu Dec 04 15:27:38.875 2008] [28190:1123916096] [info]
ajp_service::jk_ajp_common.c (2407): (ajp13w) sending request to tomcat failed
(recoverable), because of error during request sending (attempt=2)
[Thu Dec 04 15:27:38.875 2008] [28190:1123916096] [error]
ajp_service::jk_ajp_common.c (2426): (ajp13w) connecting to tomcat failed.
[Thu Dec 04 15:27:38.875 2008] [28190:1123916096] [info]
service::jk_lb_worker.c (1347): service failed, worker ajp13w is in error state
[Thu Dec 04 15:27:38.878 2008] wlb(ajp13w) localhost 10.106069
---

regards.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message