Reverted HadoopIllegalArgumentException to IllegalArgumentException

This commit is contained in:
FuzzingTeam 2022-10-23 17:36:56 +05:30
parent 138553bf20
commit 5f78dfdb2d
3 changed files with 5 additions and 6 deletions

View File

@ -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) {

View File

@ -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]);
}

View File

@ -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));
}