From 75183498b87a0ab08510c705b5deb5e9d2d9d198 Mon Sep 17 00:00:00 2001 From: Jean-Daniel Cryans Date: Fri, 24 Oct 2008 23:28:18 +0000 Subject: [PATCH] HBASE-940 Replaced the try catch in close by letting out the IOE git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@707789 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/hbase/mapred/TableOutputFormat.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/hadoop/hbase/mapred/TableOutputFormat.java b/src/java/org/apache/hadoop/hbase/mapred/TableOutputFormat.java index 0aa52c428a1..19fe3e08ebf 100644 --- a/src/java/org/apache/hadoop/hbase/mapred/TableOutputFormat.java +++ b/src/java/org/apache/hadoop/hbase/mapred/TableOutputFormat.java @@ -63,13 +63,9 @@ FileOutputFormat { m_table = table; } - public void close(@SuppressWarnings("unused") Reporter reporter) { - try { - m_table.flushCommits(); - } - catch(IOException ioe) { - LOG.error(ioe); - } + public void close(@SuppressWarnings("unused") Reporter reporter) + throws IOException { + m_table.flushCommits(); } public void write(@SuppressWarnings("unused") ImmutableBytesWritable key,