You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Uma Maheswara Rao G (Commented) (JIRA)" <ji...@apache.org> on 2011/10/08 13:56:29 UTC

[jira] [Commented] (HADOOP-7688) When a servlet filter throws an exception in init(..), the Jetty server failed silently.

    [ https://issues.apache.org/jira/browse/HADOOP-7688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123441#comment-13123441 ] 

Uma Maheswara Rao G commented on HADOOP-7688:
---------------------------------------------

Thanks a lot for taking a look!

 Sorry for the late in reply. I was on sudden leave. will take up my tasks from this Monday.

  I did not find any configuration item for controlling of Filter loading.
 I know we can control the Servlet loading by using load-on-startup property.
 
I think Filter init methods will be called when loading the web contexts (or APPS).

In this case, When loading the web contexts, if Filter init api throws any exception, application loading is failing. Because of one application load failure, server can not be shutdown in ideal case. So, it is just continuing. 
When first request comes, it is giving 503 response.

In Ideal case server should not shutdown, so it is continuing. But in Hadoop specific case i think we can thow exception if any of the context loading fails.

Nicholas, can you please give your opinion as well?

Thanks
Uma
 

 
                
> When a servlet filter throws an exception in init(..), the Jetty server failed silently. 
> -----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7688
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7688
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Uma Maheswara Rao G
>         Attachments: filter-init-exception-test.patch, org.apache.hadoop.http.TestServletFilter-output.txt
>
>
> When a servlet filter throws a ServletException in init(..), the exception is logged by Jetty but not re-throws to the caller.  As a result, the Jetty server failed silently.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira