Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 471D186A3 for ; Mon, 22 Aug 2011 20:11:02 +0000 (UTC) Received: (qmail 79646 invoked by uid 500); 22 Aug 2011 20:11:02 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 79554 invoked by uid 500); 22 Aug 2011 20:11:01 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 79336 invoked by uid 99); 22 Aug 2011 20:11:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 20:11:00 +0000 X-ASF-Spam-Status: No, hits=-2000.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 20:10:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 41074CAE3F for ; Mon, 22 Aug 2011 20:10:37 +0000 (UTC) Date: Mon, 22 Aug 2011 20:10:37 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: <1918546890.2566.1314043837263.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <245958064.2750.1309928176865.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4065) TableOutputFormat ignores failure to create table instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088975#comment-13088975 ] Hudson commented on HBASE-4065: ------------------------------- Integrated in HBase-TRUNK #2128 (See [https://builds.apache.org/job/HBase-TRUNK/2128/]) HBASE-4065 TableOutputFormat ignores failure to create table instance (Brock Noland) tedyu : Files : * /hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/TableOutputFormat.java * /hbase/trunk/CHANGES.txt > TableOutputFormat ignores failure to create table instance > ---------------------------------------------------------- > > Key: HBASE-4065 > URL: https://issues.apache.org/jira/browse/HBASE-4065 > Project: HBase > Issue Type: Bug > Affects Versions: 0.90.3 > Reporter: Todd Lipcon > Assignee: Brock Noland > Fix For: 0.94.0 > > Attachments: HBASE-4065.1.patch, HBASE-4065.2.patch > > > If TableOutputFormat in the new API fails to create a table, it simply logs this at ERROR level and then continues on its way. Then, the first write() to the table will throw a NPE since table hasn't been set. > Instead, it should probably rethrow the exception as a RuntimeException in setConf, or do what the old-API TOF does and not create the HTable instance until getRecordWriter, where it can throw an IOE. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira