From 98ea3ec0da978e1d9f0a5f4f11bfc471a39de842 Mon Sep 17 00:00:00 2001 From: Kai Zheng Date: Thu, 2 Apr 2015 05:12:35 +0800 Subject: [PATCH] HADOOP-11782 Correct two thrown messages in ECSchema class. Contributed by Xinwei Qin --- hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt | 3 +++ .../main/java/org/apache/hadoop/io/erasurecode/ECSchema.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt b/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt index b69e69adfa..01280db2b1 100644 --- a/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt +++ b/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt @@ -29,3 +29,6 @@ HADOOP-11647. Reed-Solomon ErasureCoder. Contributed by Kai Zheng ( Kai Zheng ) + + HADOOP-11782 Correct two thrown messages in ECSchema class. Contributed by Xinwei Qin + ( Xinwei Qin via Kai Zheng ) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java index 8dc3f4516e..27be00e673 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java @@ -64,7 +64,7 @@ public ECSchema(String schemaName, Map options) { } } catch (NumberFormatException e) { 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"); } @@ -74,7 +74,7 @@ public ECSchema(String schemaName, Map options) { } } catch (NumberFormatException e) { 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"); }