Reverted HadoopIllegalArgumentException to IllegalArgumentException
This commit is contained in:
parent
138553bf20
commit
5f78dfdb2d
|
@ -39,7 +39,7 @@ class DecodingState {
|
|||
T[] outputs) {
|
||||
if (inputs.length != decoder.getNumParityUnits() +
|
||||
decoder.getNumDataUnits()) {
|
||||
throw new HadoopIllegalArgumentException("Invalid inputs length");
|
||||
throw new IllegalArgumentException("Invalid inputs length");
|
||||
}
|
||||
|
||||
if (erasedIndexes.length != outputs.length) {
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
*/
|
||||
package org.apache.hadoop.io.erasurecode;
|
||||
|
||||
import org.apache.hadoop.HadoopIllegalArgumentException;
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.io.erasurecode.BufferAllocator.SimpleBufferAllocator;
|
||||
import org.apache.hadoop.io.erasurecode.BufferAllocator.SlicedBufferAllocator;
|
||||
|
@ -229,7 +228,7 @@ public abstract class TestCoderBase {
|
|||
toEraseChunks[idx ++] = dataChunks[erasedDataIndexes[i]];
|
||||
dataChunks[erasedDataIndexes[i]] = null;
|
||||
} else {
|
||||
throw new HadoopIllegalArgumentException(
|
||||
throw new IllegalArgumentException(
|
||||
"The erased index is out of bound: erasedDataIndex="
|
||||
+ erasedDataIndexes[i]);
|
||||
}
|
||||
|
@ -240,7 +239,7 @@ public abstract class TestCoderBase {
|
|||
toEraseChunks[idx ++] = parityChunks[erasedParityIndexes[i]];
|
||||
parityChunks[erasedParityIndexes[i]] = null;
|
||||
} else {
|
||||
throw new HadoopIllegalArgumentException(
|
||||
throw new IllegalArgumentException(
|
||||
"The erased index is out of bound: erasedParityIndex="
|
||||
+ erasedParityIndexes[i]);
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ public class TestDecodingValidator extends TestRawCoderBase {
|
|||
// decode
|
||||
try {
|
||||
backupAndEraseChunks(clonedDataChunks, parityChunks);
|
||||
} catch (HadoopIllegalArgumentException e) {
|
||||
} catch (IllegalArgumentException e) {
|
||||
String expected = "The erased index is out of bound";
|
||||
Assume.assumeTrue(expected, !e.toString().contains(expected));
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ public class TestDecodingValidator extends TestRawCoderBase {
|
|||
// decode
|
||||
try {
|
||||
backupAndEraseChunks(clonedDataChunks, parityChunks);
|
||||
} catch (HadoopIllegalArgumentException e) {
|
||||
} catch (IllegalArgumentException e) {
|
||||
String expected = "The erased index is out of bound";
|
||||
Assume.assumeTrue(expected, !e.toString().contains(expected));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue