瀏覽代碼

HADOOP-11782 Correct two thrown messages in ECSchema class. Contributed by Xinwei Qin

Kai Zheng 10 年之前
父節點
當前提交
98ea3ec0da

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt

@@ -29,3 +29,6 @@
 
 
     HADOOP-11647. Reed-Solomon ErasureCoder. Contributed by Kai Zheng
     HADOOP-11647. Reed-Solomon ErasureCoder. Contributed by Kai Zheng
     ( Kai Zheng )
     ( Kai Zheng )
+
+    HADOOP-11782 Correct two thrown messages in ECSchema class. Contributed by Xinwei Qin
+    ( Xinwei Qin via Kai Zheng )

+ 2 - 2
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java

@@ -64,7 +64,7 @@ public class ECSchema {
       }
       }
     } catch (NumberFormatException e) {
     } catch (NumberFormatException e) {
       throw new IllegalArgumentException("Option value " +
       throw new IllegalArgumentException("Option value " +
-          options.get(CHUNK_SIZE_KEY) + " for " + CHUNK_SIZE_KEY +
+          options.get(NUM_DATA_UNITS_KEY) + " for " + NUM_DATA_UNITS_KEY +
           " is found. It should be an integer");
           " is found. It should be an integer");
     }
     }
 
 
@@ -74,7 +74,7 @@ public class ECSchema {
       }
       }
     } catch (NumberFormatException e) {
     } catch (NumberFormatException e) {
       throw new IllegalArgumentException("Option value " +
       throw new IllegalArgumentException("Option value " +
-          options.get(CHUNK_SIZE_KEY) + " for " + CHUNK_SIZE_KEY +
+          options.get(NUM_PARITY_UNITS_KEY) + " for " + NUM_PARITY_UNITS_KEY +
           " is found. It should be an integer");
           " is found. It should be an integer");
     }
     }