Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 513EF200D18 for ; Wed, 11 Oct 2017 09:47:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4F6E91609E4; Wed, 11 Oct 2017 07:47:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 959F71609CA for ; Wed, 11 Oct 2017 09:47:25 +0200 (CEST) Received: (qmail 36416 invoked by uid 500); 11 Oct 2017 07:47:24 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 36407 invoked by uid 99); 11 Oct 2017 07:47:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2017 07:47:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7ABEAE96EF; Wed, 11 Oct 2017 07:47:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: drankye@apache.org To: common-commits@hadoop.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: HDFS-12635. Unnecessary exception declaration of the CellBuffers constructor. Contributed by Huafeng Wang Date: Wed, 11 Oct 2017 07:47:24 +0000 (UTC) archived-at: Wed, 11 Oct 2017 07:47:26 -0000 Repository: hadoop Updated Branches: refs/heads/branch-3.0 372997f39 -> 8947c0b88 HDFS-12635. Unnecessary exception declaration of the CellBuffers constructor. Contributed by Huafeng Wang Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8947c0b8 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8947c0b8 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8947c0b8 Branch: refs/heads/branch-3.0 Commit: 8947c0b881b9e37b5ee7ad661a97acebb1c860a7 Parents: 372997f Author: Kai Zheng Authored: Wed Oct 11 15:47:00 2017 +0800 Committer: Kai Zheng Committed: Wed Oct 11 15:47:00 2017 +0800 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/8947c0b8/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java index 66eec7a..3eb7e67 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java @@ -198,7 +198,7 @@ public class DFSStripedOutputStream extends DFSOutputStream private final ByteBuffer[] buffers; private final byte[][] checksumArrays; - CellBuffers(int numParityBlocks) throws InterruptedException{ + CellBuffers(int numParityBlocks) { if (cellSize % bytesPerChecksum != 0) { throw new HadoopIllegalArgumentException("Invalid values: " + HdfsClientConfigKeys.DFS_BYTES_PER_CHECKSUM_KEY + " (=" @@ -304,12 +304,7 @@ public class DFSStripedOutputStream extends DFSOutputStream ecPolicy.getCodecName(), coderOptions); coordinator = new Coordinator(numAllBlocks); - try { - cellBuffers = new CellBuffers(numParityBlocks); - } catch (InterruptedException ie) { - throw DFSUtilClient.toInterruptedIOException( - "Failed to create cell buffers", ie); - } + cellBuffers = new CellBuffers(numParityBlocks); streamers = new ArrayList<>(numAllBlocks); for (short i = 0; i < numAllBlocks; i++) { --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org