Review Board 1.7.22


Cleaned up error codes in MapreduceExecutionError

Review Request #9495 - Created Feb. 18, 2013 and updated

Linden Hillenbrand
Sqoop-743
Reviewers
Sqoop
jarcec, kate
sqoop-sqoop2
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.
execution/mapreduce/src/main/java/org/apache/sqoop/job/MapreduceExecutionError.java
Revision 1dc12d1 New Change
[20] 21 lines
[+20]
22
/**
22
/**
23
 *
23
 *
24
 */
24
 */
25
public enum MapreduceExecutionError implements ErrorCode {
25
public enum MapreduceExecutionError implements ErrorCode {
26

    
   
26

   
27
  MAPRED_EXEC_0000("Unknown error"),
27
	
28

    
   

   
29
  /** Error occurs during job execution. */

   
30
  MAPRED_EXEC_0008("Error occurs during job execution"),

   
31

    
   

   
32
  /** The system was unable to load the specified class. */
28
  /** The system was unable to load the specified class. */
33
  MAPRED_EXEC_0009("Unable to load the specified class"),
29
  MAPRED_EXEC_0009("Unable to load the specified class"),
34

    
   
30

   
35
  /** The system was unable to instantiate the specified class. */
31
  /** The system was unable to instantiate the specified class. */
36
  MAPRED_EXEC_0010("Unable to instantiate the specified class"),
32
  MAPRED_EXEC_0010("Unable to instantiate the specified class"),
37

    
   
33

   
38
  /** The parameter already exists in the context */

   
39
  MAPRED_EXEC_0011("The parameter already exists in the context"),

   
40

    
   

   
41
  /** The type is not supported */
34
  /** The type is not supported */
42
  MAPRED_EXEC_0012("The type is not supported"),
35
  MAPRED_EXEC_0012("The type is not supported"),
43

    
   
36

   
44
  /** Cannot write to the data writer */
37
  /** Cannot write to the data writer */
45
  MAPRED_EXEC_0013("Cannot write to the data writer"),
38
  MAPRED_EXEC_0013("Cannot write to the data writer"),
46

    
   
39

   
47
  /** Cannot read from the data reader */

   
48
  MAPRED_EXEC_0014("Cannot read to the data reader"),

   
49

    
   

   
50
  /** Unable to write data due to interrupt */

   
51
  MAPRED_EXEC_0015("Unable to write data due to interrupt"),

   
52

    
   

   
53
  /** Unable to read data due to interrupt */

   
54
  MAPRED_EXEC_0016("Unable to read data due to interrupt"),

   
55

    
   

   
56
  /** Error occurs during extractor run */
40
  /** Error occurs during extractor run */
57
  MAPRED_EXEC_0017("Error occurs during extractor run"),
41
  MAPRED_EXEC_0017("Error occurs during extractor run"),
58

    
   
42

   
59
  /** Error occurs during loader run */
43
  /** Error occurs during loader run */
60
  MAPRED_EXEC_0018("Error occurs during loader run"),
44
  MAPRED_EXEC_0018("Error occurs during loader run"),
61

    
   
45

   
62
  MAPRED_EXEC_0019("Data have not been completely consumed yet"),
46
  MAPRED_EXEC_0019("Data has not been completely consumed yet"),
63

    
   

   
64
  /** The required option has not been set yet */

   
65
  MAPRED_EXEC_0020("The required option has not been set yet"),

   
66

    
   
47

   
67
  /** Error occurs during partitioner run */
48
  /** Error occurs during partitioner run */
68
  MAPRED_EXEC_0021("Error occurs during partitioner run"),
49
  MAPRED_EXEC_0021("Error occurs during partitioner run"),
69

    
   
50

   
70
  /** Unable to parse because it is not properly delimited */
51
  /** Unable to parse because it is not properly delimited */
[+20] [20] 27 lines
  1. execution/mapreduce/src/main/java/org/apache/sqoop/job/MapreduceExecutionError.java: Loading...