Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 347D9DEE7 for ; Wed, 31 Oct 2012 06:41:17 +0000 (UTC) Received: (qmail 5710 invoked by uid 500); 31 Oct 2012 06:41:16 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 5682 invoked by uid 500); 31 Oct 2012 06:41:16 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 5630 invoked by uid 99); 31 Oct 2012 06:41:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 06:41:15 +0000 Date: Wed, 31 Oct 2012 06:41:15 +0000 (UTC) From: "Yanbo Liang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <388750125.49399.1351665675321.JavaMail.jiratomcat@arcas> In-Reply-To: <1314808671.39090.1350070144050.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-4047) BPServiceActor has nested shouldRun loops MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yanbo Liang updated HDFS-4047: ------------------------------ Status: Patch Available (was: Open) > BPServiceActor has nested shouldRun loops > ----------------------------------------- > > Key: HDFS-4047 > URL: https://issues.apache.org/jira/browse/HDFS-4047 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 2.0.0-alpha > Reporter: Eli Collins > Priority: Minor > Attachments: HADOOP-4047.patch > > > BPServiceActor#run and offerService booth have while shouldRun loops. We only need the outer one, ie we can hoist the info log from offerService out to run and remove the while loop. > {code} > BPServiceActor#run: > while (shouldRun()) { > try { > offerService(); > } catch (Exception ex) { > ... > offerService: > while (shouldRun()) { > try { > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira