HDFS-12635. Unnecessary exception declaration of the CellBuffers constructor. Contributed by Huafeng Wang
This commit is contained in:
parent
3d04c00aed
commit
d8d37b63c7
@ -198,7 +198,7 @@ class CellBuffers {
|
|||||||
private final ByteBuffer[] buffers;
|
private final ByteBuffer[] buffers;
|
||||||
private final byte[][] checksumArrays;
|
private final byte[][] checksumArrays;
|
||||||
|
|
||||||
CellBuffers(int numParityBlocks) throws InterruptedException{
|
CellBuffers(int numParityBlocks) {
|
||||||
if (cellSize % bytesPerChecksum != 0) {
|
if (cellSize % bytesPerChecksum != 0) {
|
||||||
throw new HadoopIllegalArgumentException("Invalid values: "
|
throw new HadoopIllegalArgumentException("Invalid values: "
|
||||||
+ HdfsClientConfigKeys.DFS_BYTES_PER_CHECKSUM_KEY + " (="
|
+ HdfsClientConfigKeys.DFS_BYTES_PER_CHECKSUM_KEY + " (="
|
||||||
@ -304,12 +304,7 @@ private void flipDataBuffers() {
|
|||||||
ecPolicy.getCodecName(), coderOptions);
|
ecPolicy.getCodecName(), coderOptions);
|
||||||
|
|
||||||
coordinator = new Coordinator(numAllBlocks);
|
coordinator = new Coordinator(numAllBlocks);
|
||||||
try {
|
|
||||||
cellBuffers = new CellBuffers(numParityBlocks);
|
cellBuffers = new CellBuffers(numParityBlocks);
|
||||||
} catch (InterruptedException ie) {
|
|
||||||
throw DFSUtilClient.toInterruptedIOException(
|
|
||||||
"Failed to create cell buffers", ie);
|
|
||||||
}
|
|
||||||
|
|
||||||
streamers = new ArrayList<>(numAllBlocks);
|
streamers = new ArrayList<>(numAllBlocks);
|
||||||
for (short i = 0; i < numAllBlocks; i++) {
|
for (short i = 0; i < numAllBlocks; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user