Abraham Fine created SQOOP-2869:
-----------------------------------

             Summary: Sqoop2: Provide mapping from ServerError to HTTP status 
codes
                 Key: SQOOP-2869
                 URL: https://issues.apache.org/jira/browse/SQOOP-2869
             Project: Sqoop
          Issue Type: Improvement
            Reporter: Abraham Fine
            Priority: Minor


This is a follow up from the review of SQOOP-2545

At 
https://github.com/apache/sqoop/blob/sqoop2/server/src/main/java/org/apache/sqoop/server/SqoopProtocolServlet.java#L144
 we have an if statement that matches ServerErrors to HTTP status codes. 

As we continue to work on the backend we may want to support many different 
types of exceptions and it would become difficult to keep this chunk of code up 
to date with all of these different exceptions. We should have some sort of 
mechanism to map these exceptions to to status codes.



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

Reply via email to