You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/08/28 14:51:36 UTC
DO NOT REPLY [Bug 43229] New: - mod_jk 1.2.25 different fallback behavior on reply_timeout happens between 1.2.23 and 1.2.25
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43229
Summary: mod_jk 1.2.25 different fallback behavior on
reply_timeout happens between 1.2.23 and 1.2.25
Product: Tomcat 5
Version: Unknown
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Native:JK
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: motonobu@gmail.com
mod_jk 1.2.25 comes with JK_REPLY_TIMEOUT as new error status.
on 1.2.25, when reply_timeout is happend on getting replies from tomcat,
JK_REPLY_TIMEOUT is returned with http error code JK_HTTP_GATEWAY_TIME_OUT(504)
at ajp_service@jk_ajp_common.c(line 2038,2107)
Currently, mod_jk can handle a fallback operation (send a request to another
worker) by lb_worker only when http error code is JK_HTTP_SERVER_BUSY.
(see service@jk_lb_worker.c(line 1101))
so, handling JK_HTTP_GATEWAY_TIMEOUT with JK_REPLY_TIMEOUT status, the value of
rc is always JK_FALSE, and lb_worker doesn't try next one.
1.2.23 can fall back to the next one because of JK_HTTP_SERVER_BUSY is always
returned when reply_timeout occurs.
my proposal is that
when reply_timeout happenes and op->recoverable is set,
return JK_HTTP_SERVER_BUSY as a http error code with status JK_REPLY_TIMEOUT
instead of JK_HTTP_GATEWAY_TIMEOUT in order to make lb_worker handle the
fallback behavior.
thanks in advance.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 43229] - mod_jk 1.2.25 different fallback behavior on reply_timeout happens between 1.2.23 and 1.2.25
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43229
rainer.jung@kippdata.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
------- Additional Comments From rainer.jung@kippdata.de 2007-09-02 16:08 -------
Thank you for analyzing this problem. Yes, reply timeouts should allow
retries/failover, at least unles recovery_options disable them.
The interface between the service() method of an lb member and the lb itself
consists of the service() return code and the additional is_error, which is
meant to indicate the HTTP return code.
The lb needs to decide, if it should do a failover, and if the member needs to
be put into error state. The interface is not really rich enough to help with
these decisions.
Either we end up in using more fine grained return codes from service(), or we
add recoverability(=failover) and member error info as side effects,
additionally to is_error.
I'm actively investigating this. As a first step, I added some code comments,
which return codes to expect from the service() methods.
Please stay tuned.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 43229] - mod_jk 1.2.25 different fallback behavior on reply_timeout happens between 1.2.23 and 1.2.25
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43229
------- Additional Comments From motonobu@gmail.com 2007-08-28 05:52 -------
Created an attachment (id=20721)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20721&action=view)
proposal patch.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 43229] - mod_jk 1.2.25 different fallback behavior on reply_timeout happens between 1.2.23 and 1.2.25
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43229
rainer.jung@kippdata.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org