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 CA081107B1 for ; Wed, 23 Jul 2014 14:32:40 +0000 (UTC) Received: (qmail 45951 invoked by uid 500); 23 Jul 2014 14:32:40 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 45908 invoked by uid 500); 23 Jul 2014 14:32:40 -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 45895 invoked by uid 99); 23 Jul 2014 14:32:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 14:32:40 +0000 Date: Wed, 23 Jul 2014 14:32:40 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11551) BucketCache$WriterThread.run() doesn't handle exceptions correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11551?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D140= 71780#comment-14071780 ]=20 stack commented on HBASE-11551: ------------------------------- bq. The above exception =E2=80=98Failed allocating for block bck2_0=E2=80= =99 won't cause writerThread exiting. So, the issue is your observation [~zjushch] but [~ted_yu] files it and add= s the patch? Then [~ted_yu] posts justification for the patch but the patc= h does not address the justification? [~ted_yu] where does the posted exception come from? We should fix it. > BucketCache$WriterThread.run() doesn't handle exceptions correctly > ------------------------------------------------------------------ > > Key: HBASE-11551 > URL: https://issues.apache.org/jira/browse/HBASE-11551 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Attachments: 11551-v1.txt > > > Currently the catch is outside the while loop: > {code} > try { > while (cacheEnabled && writerEnabled) { > ... > } catch (Throwable t) { > LOG.warn("Failed doing drain", t); > } > {code} > When exception (e.g. BucketAllocatorException) is thrown, run() method wo= uld terminate, silently. -- This message was sent by Atlassian JIRA (v6.2#6252)