Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47AAC10977 for ; Fri, 1 Nov 2013 22:42:27 +0000 (UTC) Received: (qmail 88404 invoked by uid 500); 1 Nov 2013 22:42:27 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 88273 invoked by uid 500); 1 Nov 2013 22:42:27 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 88265 invoked by uid 99); 1 Nov 2013 22:42:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2013 22:42:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.215.51 as permitted sender) Received: from [209.85.215.51] (HELO mail-la0-f51.google.com) (209.85.215.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2013 22:42:23 +0000 Received: by mail-la0-f51.google.com with SMTP id ea20so3805222lab.24 for ; Fri, 01 Nov 2013 15:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PMJbjV+pmlEnW5jC4Xl68TBsFr033gLMiT/S31KiF9g=; b=Cq9s0I02LjHRoIiHb2enZ4yPq17lM0pqqTdkngujjErXR7yWD8EQmdmmS1rmPjk2OS wYmmv5AiDdMoZLRb33eZb/ZvYM5Nr16kSRRC3onmy3utmsol9btgzWNOMyHc8qP14dnc 6d43GIDFtXhtvV7Keizmxum9pe18eon6htC66xE5lskSEsHVvmJV08y3wMwBrUroYSIL in4jPXuM8N5sYeNpSrC0xANLvTBcIP/I+C4G+qPGEdrseEBt683xfTXjj9XwAfCxgxA9 4sM8YZ+Y0/eczQdMVPX0pd0Y/S8c3FqdmP8Kj9t3wzwYoxk5EusXoq1zqVmxBRrw9Bx8 zR6Q== MIME-Version: 1.0 X-Received: by 10.152.29.38 with SMTP id g6mr3253982lah.25.1383345721605; Fri, 01 Nov 2013 15:42:01 -0700 (PDT) Received: by 10.112.129.40 with HTTP; Fri, 1 Nov 2013 15:42:01 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Nov 2013 15:42:01 -0700 Message-ID: Subject: Re: InterruptedException handling From: Ted Yu To: dev@accumulo.apache.org Content-Type: multipart/alternative; boundary=089e0158c0045684dc04ea2546de X-Virus-Checked: Checked by ClamAV on apache.org --089e0158c0045684dc04ea2546de Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Luckily Google comes to the rescue: http://webcache.googleusercontent.com/search?q=3Dcache:940mX01ckwMJ:www.ibm= .com/developerworks/java/library/j-jtp05236/index.html%3Fiframe%3Dtrue%26wi= dth%3D80%25%26height%3D80%25+&cd=3D1&hl=3Den&ct=3Dclnk&gl=3Dus On Fri, Nov 1, 2013 at 3:39 PM, Ted Yu wrote: > In code reviews, I referred to the following article (I believe is the > same as the Chinese version) which isn't there anymore: > http://www.ibm.com/developerworks/java/library/j-jtp05236/index.html > > The following search returned nothing: > > > http://www.ibm.com/developerworks/java/library/?sort_by=3D&show_abstract= =3Dtrue&show_all=3D&search_flag=3D&contentarea_by=3DJava+technology&search_= by=3DInterruptedException&topic_by=3D-1&industry_by=3D-1&type_by=3DAll+Type= s&ibm-search=3DSearch > > However, code speaks by itself. I often refer people to: > =C7=E5=B5=A5 3. =B2=B6=D7=BD InterruptedException =BA=F3=BB=D6=B8=B4=D6= =D0=B6=CF=D7=B4=CC=AC > which says "restore interrupt status after catchingInterruptedException" > > Cheers > > > On Fri, Nov 1, 2013 at 3:31 PM, Christopher wrote: > >> It was pointed out to me by a colleague that we're not properly >> handling InterruptedException in many places. >> >> He cited this article (I could only find it in Chinese, but Google >> Translate works quite well converting it to English): >> http://www.ibm.com/developerworks/cn/java/j-jtp05236.html >> >> One place we do this a lot is UtilWaitThread. Should we be concerned >> about this? How do we want to address it? >> >> (Also, does anybody have a link to the English version of that article?) >> >> -- >> Christopher L Tubbs II >> http://gravatar.com/ctubbsii >> > > --089e0158c0045684dc04ea2546de--