Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 3694 invoked from network); 8 Jul 2009 11:45:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 11:45:30 -0000 Received: (qmail 28016 invoked by uid 500); 8 Jul 2009 11:45:40 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 27974 invoked by uid 500); 8 Jul 2009 11:45:39 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 27811 invoked by uid 99); 8 Jul 2009 11:45:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 11:45:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 11:45:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6FC96234C044 for ; Wed, 8 Jul 2009 04:45:15 -0700 (PDT) Message-ID: <683600937.1247053515457.JavaMail.jira@brutus> Date: Wed, 8 Jul 2009 04:45:15 -0700 (PDT) From: =?utf-8?Q?Do=C4=9Facan_G=C3=BCney_=28JIRA=29?= To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1627) TableInputFormatBase#nextKeyValue catches the wrong exception In-Reply-To: <2050241844.1247053515363.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1627?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Do=C4=9Facan G=C3=BCney updated HBASE-1627: --------------------------------- Attachment: tableinput.patch A simple patch to change catch clause to catch all IOException-s. Are there= any downsides to this? If an IOException is thrown, reset your scanner, tr= y again and if it fails again your job fails. Makes sense to me :D > TableInputFormatBase#nextKeyValue catches the wrong exception > ------------------------------------------------------------- > > Key: HBASE-1627 > URL: https://issues.apache.org/jira/browse/HBASE-1627 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.20.0 > Reporter: Do=C4=9Facan G=C3=BCney > Priority: Minor > Attachments: tableinput.patch > > > TableInputFormatBase#nextKeyValue only catches UnknownScannerException fr= om Scanner.next. However, scanner may throw other exceptions: > {code} > /* from HTable.ClientScanner#next */ > try { > values =3D getConnection().getRegionServerWithRetries(callabl= e); > } catch (IOException e) { > if (e instanceof UnknownScannerException && > lastNext + scannerTimeout < System.currentTimeMillis()) { > ScannerTimeoutException ex =3D new ScannerTimeoutException(= ); > ex.initCause(e); > throw ex; > } > throw e; > } > {code} > Is there any reason why TIFB does not catch ScannerTimeoutException? --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.