From notifications-return-42233-archive-asf-public=cust-asf.ponee.io@accumulo.apache.org Thu Feb 15 18:00:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9D91618064A for ; Thu, 15 Feb 2018 18:00:06 +0100 (CET) Received: (qmail 50928 invoked by uid 500); 15 Feb 2018 17:00:05 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 50917 invoked by uid 99); 15 Feb 2018 17:00:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2018 17:00:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0753D1800D6 for ; Thu, 15 Feb 2018 17:00:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id IZpb0zJccF8o for ; Thu, 15 Feb 2018 17:00:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 90D425F36A for ; Thu, 15 Feb 2018 17:00:03 +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 95B24E030E for ; Thu, 15 Feb 2018 17:00:02 +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 D589A21E61 for ; Thu, 15 Feb 2018 17:00:01 +0000 (UTC) Date: Thu, 15 Feb 2018 17:00:01 +0000 (UTC) From: "Keith Turner (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4788) Improve Thrift Transport pool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-4788?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 6365926#comment-16365926 ]=20 Keith Turner commented on ACCUMULO-4788: ---------------------------------------- I need to open a follow up issue before closing this out. > Improve Thrift Transport pool > ----------------------------- > > Key: ACCUMULO-4788 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4788 > Project: Accumulo > Issue Type: Improvement > Reporter: Keith Turner > Assignee: Keith Turner > Priority: Major > Labels: pull-request-available > Fix For: 1.9.0, 2.0.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Accumulo has a pool of recently opened connections to tablet servers.=C2= =A0 When connecting to tablet servers, this pool is checked first. The pool= is built around a map of list.=C2=A0 There are two problems with this pool= =C2=A0: > * It has global lock around the map of list > * When trying to find a connection it does a linear search for a non res= erved connection (this is per tablet server) > Could possibly move to a model of having a list of unreserved connections= and a set of reserved connections per tablet server. Then to get a connect= ion, could remove from the unreserved list and add to the reserved set.=C2= =A0 This would be a constant time operation. > For the locking, could move to a model of using a concurrent map and lock= ing per tserver instead of locking the entire map. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)