Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B9166200B61 for ; Tue, 26 Jul 2016 03:47:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7D23160A8F; Tue, 26 Jul 2016 01:47:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0B7E8160A7D for ; Tue, 26 Jul 2016 03:47:26 +0200 (CEST) Received: (qmail 25085 invoked by uid 500); 26 Jul 2016 01:47:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 25012 invoked by uid 99); 26 Jul 2016 01:47:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 01:47:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BAA102C0D66 for ; Tue, 26 Jul 2016 01:47:20 +0000 (UTC) Date: Tue, 26 Jul 2016 01:47:20 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10688) BPServiceActor may run into a tight loop for sending block report when hitting IOException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 26 Jul 2016 01:47:27 -0000 [ https://issues.apache.org/jira/browse/HDFS-10688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jing Zhao updated HDFS-10688: ----------------------------- Description: Currently in BPServiceActor#offerService, when datanode runs into a local IOException, the DataNode only logs the exception and runs into the while loop again: {code} } catch(RemoteException re) { ....... LOG.warn("RemoteException in offerService", re); try { long sleepTime = Math.min(1000, dnConf.heartBeatInterval); Thread.sleep(sleepTime); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); } } catch (IOException e) { LOG.warn("IOException in offerService", e); } {code} This tight loop may cause some issue. For example, in a production cluster, we saw a DataNode hit exception when doing kerberos realm lookup. This tight loop finally caused the DataNode to send hundreds of DNS lookup queries per second. was: Currently in BPServiceActor#offerService, when datanode runs into a local IOException, the DataNode only logs the exception and runs into the while loop again: {code} } catch(RemoteException re) { ....... LOG.warn("RemoteException in offerService", re); try { long sleepTime = Math.min(1000, dnConf.heartBeatInterval); Thread.sleep(sleepTime); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); } } catch (IOException e) { LOG.warn("IOException in offerService", e); } {code} This tight loop may cause some issue. For example, in a production cluster, we saw a DataNode hit exception when doing kerberos realm lookup. This tight loop finally caused the DataNode to send hundreds of DNS lookup queries. > BPServiceActor may run into a tight loop for sending block report when hitting IOException > ------------------------------------------------------------------------------------------ > > Key: HDFS-10688 > URL: https://issues.apache.org/jira/browse/HDFS-10688 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Reporter: Jing Zhao > Assignee: Chen Liang > Fix For: 2.8.0 > > Attachments: HDFS-10688.001.patch, HDFS-10688.002.patch > > > Currently in BPServiceActor#offerService, when datanode runs into a local IOException, the DataNode only logs the exception and runs into the while loop again: > {code} > } catch(RemoteException re) { > ....... > LOG.warn("RemoteException in offerService", re); > try { > long sleepTime = Math.min(1000, dnConf.heartBeatInterval); > Thread.sleep(sleepTime); > } catch (InterruptedException ie) { > Thread.currentThread().interrupt(); > } > } catch (IOException e) { > LOG.warn("IOException in offerService", e); > } > {code} > This tight loop may cause some issue. For example, in a production cluster, we saw a DataNode hit exception when doing kerberos realm lookup. This tight loop finally caused the DataNode to send hundreds of DNS lookup queries per second. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org