Larry McCay created KNOX-1297:
---------------------------------

             Summary: HDFSUI Requires its own HA Dispatch Provider
                 Key: KNOX-1297
                 URL: https://issues.apache.org/jira/browse/KNOX-1297
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
            Reporter: Larry McCay
            Assignee: Larry McCay
             Fix For: 1.1.0


HDFSUI has been trying to reuse the WEBHDFS HA dispatch class for HA support. 
The problem is that the WebHdfsHaDispatch is hardcoded for the WEBHDFS resource 
role. Therefore, the marking of the failed URL is always done to the set of 
URLs for the WEBHDFS service.

Thus, at URL rewrite time for dispatching to the backend service the HDFSUI URL 
is always rewritten to the first URL.

This patch will extract a base class from the WebHdfsHaDispatch and provide an 
abstract getResourceRole() method for derived classes to implement. This 
provides very thin extensions of the abstract base and decent reuse for HDFSUI 
and WebHDFS API.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to