HDFS-8857. Erasure Coding: Fix ArrayIndexOutOfBoundsException in TestWriteStripedFileWithFailure. Contributed by Li Bo
This commit is contained in:
parent
4de48211c6
commit
8799363db1
@ -388,3 +388,6 @@
|
|||||||
|
|
||||||
HDFS-8399. Erasure Coding: unit test the behaviour of BlockManager recovery
|
HDFS-8399. Erasure Coding: unit test the behaviour of BlockManager recovery
|
||||||
work for the deleted blocks. (Rakesh R via zhz)
|
work for the deleted blocks. (Rakesh R via zhz)
|
||||||
|
|
||||||
|
HDFS-8857. Erasure Coding: Fix ArrayIndexOutOfBoundsException in
|
||||||
|
TestWriteStripedFileWithFailure. (Li Bo)
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
public class TestWriteStripedFileWithFailure {
|
public class TestWriteStripedFileWithFailure {
|
||||||
public static final Log LOG = LogFactory
|
public static final Log LOG = LogFactory
|
||||||
.getLog(TestReadStripedFileWithMissingBlocks.class);
|
.getLog(TestWriteStripedFileWithFailure.class);
|
||||||
private static MiniDFSCluster cluster;
|
private static MiniDFSCluster cluster;
|
||||||
private static FileSystem fs;
|
private static FileSystem fs;
|
||||||
private static Configuration conf = new HdfsConfiguration();
|
private static Configuration conf = new HdfsConfiguration();
|
||||||
@ -114,7 +114,7 @@ private void writeFileWithDNFailure(int fileLength,
|
|||||||
dataDNFailureNum);
|
dataDNFailureNum);
|
||||||
Assert.assertNotNull(dataDNFailureIndices);
|
Assert.assertNotNull(dataDNFailureIndices);
|
||||||
int[] parityDNFailureIndices = StripedFileTestUtil.randomArray(dataBlocks,
|
int[] parityDNFailureIndices = StripedFileTestUtil.randomArray(dataBlocks,
|
||||||
dataBlocks + parityBlocks, dataDNFailureNum);
|
dataBlocks + parityBlocks, parityDNFailureNum);
|
||||||
Assert.assertNotNull(parityDNFailureIndices);
|
Assert.assertNotNull(parityDNFailureIndices);
|
||||||
|
|
||||||
int[] failedDataNodes = new int[dataDNFailureNum + parityDNFailureNum];
|
int[] failedDataNodes = new int[dataDNFailureNum + parityDNFailureNum];
|
||||||
|
Loading…
Reference in New Issue
Block a user