[ 
https://issues.apache.org/jira/browse/HADOOP-7688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo (Nicholas), SZE updated HADOOP-7688:
-------------------------------------------

    Attachment: org.apache.hadoop.http.TestServletFilter-output.txt
                filter-init-exception-test.patch

filter-init-exception-test.patch: modified TestServletFilter to illustrate the 
problem.
org.apache.hadoop.http.TestServletFilter-output.txt: test log
{noformat}
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.135 sec <<< 
FAILURE!
testServletFilter(org.apache.hadoop.http.TestServletFilter)  Time elapsed: 
1.792 sec  <<< FAILURE!
java.lang.AssertionError: expected:</stacks> but was:<null>
        at org.junit.Assert.fail(Assert.java:91)
        at org.junit.Assert.failNotEquals(Assert.java:645)
        at org.junit.Assert.assertEquals(Assert.java:126)
        at org.junit.Assert.assertEquals(Assert.java:145)
        at 
org.apache.hadoop.http.TestServletFilter.testServletFilter(TestServletFilter.java:133)
        ...
{noformat}
                
> 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
>         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

        

Reply via email to