[
https://issues.apache.org/jira/browse/SQOOP-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580696#comment-13580696
]
Linden Hillenbrand commented on SQOOP-743:
------------------------------------------
Checked each error in MapreduceExecutionError.java and kept ones referenced in
the code base and cleaned up the ones that were not being used.
The ones I was able to remove are the following:
/** Error occurs during job execution. */
MAPRED_EXEC_0008("Error occurs during job execution"),
/** The system was unable to load the specified class. */
MAPRED_EXEC_0009("Unable to load the specified class"),
/** The parameter already exists in the context */
MAPRED_EXEC_0011("The parameter already exists in the context"),
/** Cannot read from the data reader */
MAPRED_EXEC_0014("Cannot read to the data reader"),
/** Unable to write data due to interrupt */
MAPRED_EXEC_0015("Unable to write data due to interrupt"),
/** Unable to read data due to interrupt */
MAPRED_EXEC_0016("Unable to read data due to interrupt"),
/** The required option has not been set yet */
MAPRED_EXEC_0020("The required option has not been set yet"),
Ran all tests and passed successfully, will post patch here and on RB.
> Clean up error codes in MapreduceExecutionError
> -----------------------------------------------
>
> Key: SQOOP-743
> URL: https://issues.apache.org/jira/browse/SQOOP-743
> Project: Sqoop
> Issue Type: Task
> Affects Versions: 2.0.0
> Reporter: Jarek Jarcec Cecho
> Assignee: Linden Hillenbrand
> Priority: Minor
> Labels: newbie
> Fix For: 2.0.0
>
> Attachments: Sqoop-743.txt
>
>
> I've noticed that we have plenty of unused error codes in
> MapreduceExecutionError, would be great to check why they are not used and
> remove them if they are really not needed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira