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 75B30200B8F for ; Fri, 30 Sep 2016 19:54:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7462D160AD9; Fri, 30 Sep 2016 17:54: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 BA2F2160AB4 for ; Fri, 30 Sep 2016 19:54:26 +0200 (CEST) Received: (qmail 45784 invoked by uid 500); 30 Sep 2016 17:54:20 -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 45601 invoked by uid 99); 30 Sep 2016 17:54:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 17:54:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 918352C2A62 for ; Fri, 30 Sep 2016 17:54:20 +0000 (UTC) Date: Fri, 30 Sep 2016 17:54:20 +0000 (UTC) From: "Chen Liang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10932) Ozone : fix XceiverClient slow shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Sep 2016 17:54:27 -0000 [ https://issues.apache.org/jira/browse/HDFS-10932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chen Liang updated HDFS-10932: ------------------------------ Attachment: HDFS-10932-HDFS-7240.002.patch Rebased and fixed naming. > Ozone : fix XceiverClient slow shutdown > --------------------------------------- > > Key: HDFS-10932 > URL: https://issues.apache.org/jira/browse/HDFS-10932 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Chen Liang > Assignee: Chen Liang > Attachments: HDFS-10932-HDFS-7240.002.patch, HDFS-10932.001.patch > > > Currently {{XceiverClient}} is the underlying entity of {{DistributedStorageHandler.newKeyWriter()}} and {{DistributedStorageHandler.newKeyReader()}} for making call to container for read/write. When {{XceiverClient}} gets closed, {{group.shutdownGracefully()}} gets called, which is an asynchronous call. > A problem is that this asynchronous call has default quiet period of 2 seconds before it actually shutdown, so if we have a burst of read/write calls, we would end up having threads created faster than they got terminated, reaching system limit at some point. > Ideally, this needs to be fixed with cached clients instead of creating new thread each time. This JIRA only tries to give a temporary fix for the time being. > Thanks [~anu] for the offline discussion. -- 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