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 394A7200C24 for ; Thu, 23 Feb 2017 22:18:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 37F7D160B67; Thu, 23 Feb 2017 21:18:50 +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 7C2DD160B3E for ; Thu, 23 Feb 2017 22:18:49 +0100 (CET) Received: (qmail 45960 invoked by uid 500); 23 Feb 2017 21:18:48 -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 45949 invoked by uid 99); 23 Feb 2017 21:18:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2017 21:18:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2AAABC0590 for ; Thu, 23 Feb 2017 21:18:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fqF1jfmzz0UU for ; Thu, 23 Feb 2017 21:18:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 48742618B0 for ; Thu, 23 Feb 2017 21:18:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A88BAE0A30 for ; Thu, 23 Feb 2017 21:18:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D514E24158 for ; Thu, 23 Feb 2017 21:18:44 +0000 (UTC) Date: Thu, 23 Feb 2017 21:18:44 +0000 (UTC) From: "Chen Liang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-11036) Ozone : reuse Xceiver connection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Feb 2017 21:18:50 -0000 [ https://issues.apache.org/jira/browse/HDFS-11036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chen Liang updated HDFS-11036: ------------------------------ Attachment: HDFS-11036-HDFS-7240.004.patch Thanks [~anu], [~xyao] and [~eddyxu] for the review and comments! Uploaded v004 patch. In this patch, the cache has been replaced by a Guava cache instance (thanks [~xyao] for the advice and offline discussion). Some comments are no longer applicable, while for some others: {{Could you provide tests for this patch to prove the correctness for the basic cases?}} This is definitely something I would like to have. While this JIRA was mainly to unblock other HDFS-7240 JIRAs. Will file separate JIRA, after all the other required HDFS-7240 code have been fully checked. {{I saw you are using container name as key here, would it be an issue if two clients / pipelines access the same container at the same time?}} This is actually the purpose of using cache here: if two clients are accessing the same container, they will use the same connection. And "pipeline" is actually equal to "container" under the context of this JIRA. > Ozone : reuse Xceiver connection > -------------------------------- > > Key: HDFS-11036 > URL: https://issues.apache.org/jira/browse/HDFS-11036 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Chen Liang > Assignee: Chen Liang > Attachments: HDFS-11036-HDFS-7240.001.patch, HDFS-11036-HDFS-7240.002.patch, HDFS-11036-HDFS-7240.003.patch, HDFS-11036-HDFS-7240.004.patch > > > Currently for every IO operation calling into XceiverClientManager will open/close a connection, this JIRA proposes to reuse connection to reduce connection setup/shutdown overhead. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org