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

ASF subversion and git services commented on KNOX-414:
------------------------------------------------------

Commit 4add0130571f79f53c45c674948d2ca99e988ec9 in knox's branch 
refs/heads/v0.5.0 from [~kevin.minder]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=4add013 ]

KNOX-414: WebHDFS HA enablement in web.xml is sensitive to order of context 
listeners

(cherry picked from commit 75daf4025a070c78fff2eb4bed4e5717336a9c86)


> WebHDFS HA enablement in web.xml is sensitive to order of context listeners
> ---------------------------------------------------------------------------
>
>                 Key: KNOX-414
>                 URL: https://issues.apache.org/jira/browse/KNOX-414
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.5.0
>            Reporter: Sumit Gupta
>            Assignee: Sumit Gupta
>             Fix For: 0.5.0
>
>         Attachments: KNOX-414.patch
>
>
> Depending on how the web.xml gets generated, the HaServletContextListener may 
> come after the UrlRewriteServletContextListener, in which case the provider 
> is not available to the rewrite framework on initialization and HA 
> functionality does not work.
> The web.xml config that works is:
>   <listener>
>     
> <listener-class>org.apache.hadoop.gateway.services.GatewayServicesContextListener</listener-class>
>   </listener>
>   <listener>
>     
> <listener-class>org.apache.hadoop.gateway.ha.provider.HaServletContextListener</listener-class>
>   </listener>
>   <context-param>
>     <param-name>haDescriptorLocation</param-name>
>     <param-value>/WEB-INF/ha.xml</param-value>
>   </context-param>
>   <listener>
>     
> <listener-class>org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteServletContextListener</listener-class>
>   </listener>
>   <context-param>
>     <param-name>rewriteDescriptorLocation</param-name>
>     <param-value>/WEB-INF/rewrite.xml</param-value>
>   </context-param>
> but there is no guarantee in place that the web.xml will be generated as 
> such. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to