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=42849>.
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=42849

           Summary: If mod_jk cannot resolve host name, all workers are
                    destroyed
           Product: Tomcat 5
           Version: Unknown
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the workers definition file (specified by the JkWorkersFile property in the
httpd.conf) there is a list of workers mapped to a list of their respective
hosts to forward to.  I.e. 

worker.list=foo, bar, baz

worker.foo.port=16013
worker.foo.host=foo_host
worker.foo.type=ajp13

worker.bar.port=16013
worker.bar.host=bar_host
worker.bar.type=ajp13

worker.baz.port=16013
worker.baz.host=baz_host
worker.baz.type=ajp13


If one of the hosts which is specified cannot be resolved (lets say in this case
it is baz_host), then the following statement is printed in the mod_jk.log file

ajp_validate::jk_ajp_common.c (2001): worker baz contact is 'baz_host:23013'
ajp_validate::jk_ajp_common.c (2010): can't resolve tomcat address baz_host
ajp_validate::jk_ajp_common.c (2013): invalid host and port baz_host 23013
ajp_destroy::jk_ajp_common.c (2215): up to 0 endpoints to close
wc_create_worker::jk_worker.c (161): validate failed for baz
build_worker_map::jk_worker.c (259): failed to create worker baz
close_workers::jk_worker.c (215): close_workers will destroy worker foo
ajp_destroy::jk_ajp_common.c (2215): up to 1 endpoints to close
close_workers::jk_worker.c (215): close_workers will destroy worker bar
ajp_destroy::jk_ajp_common.c (2215): up to 1 endpoints to close


Which means that all workers are now destroyed instead of just that single
worker (which seems a bit overkill).

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to