|
@@ -82,8 +82,10 @@ class StripedWriter {
|
|
|
assert targetStorageIds != null;
|
|
|
|
|
|
writers = new StripedBlockWriter[targets.length];
|
|
|
-
|
|
|
targetIndices = new short[targets.length];
|
|
|
+ Preconditions.checkArgument(
|
|
|
+ targetIndices.length <= dataBlkNum + parityBlkNum - reconstructor.getNumLiveBlocks(),
|
|
|
+ "Reconstruction work gets too much targets.");
|
|
|
Preconditions.checkArgument(targetIndices.length <= parityBlkNum,
|
|
|
"Too much missed striped blocks.");
|
|
|
initTargetIndices();
|