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 73766200B9F for ; Tue, 11 Oct 2016 18:29:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 725F6160AF8; Tue, 11 Oct 2016 16:29:22 +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 E16FA160AC3 for ; Tue, 11 Oct 2016 18:29:21 +0200 (CEST) Received: (qmail 12807 invoked by uid 500); 11 Oct 2016 16:29:21 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 12772 invoked by uid 99); 11 Oct 2016 16:29:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 16:29:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E5F242C4C74 for ; Tue, 11 Oct 2016 16:29:20 +0000 (UTC) Date: Tue, 11 Oct 2016 16:29:20 +0000 (UTC) From: "Weiqing Yang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16638) Reduce the number of Connection's created in classes of hbase-spark module MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Oct 2016 16:29:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Weiqing Yang updated HBASE-16638: --------------------------------- Attachment: HBASE-16638.ADDENDUM.patch > Reduce the number of Connection's created in classes of hbase-spark module > -------------------------------------------------------------------------- > > Key: HBASE-16638 > URL: https://issues.apache.org/jira/browse/HBASE-16638 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Weiqing Yang > Fix For: 2.0.0 > > Attachments: HBASE-16638.ADDENDUM.patch, HBASE-16638_v1.patch, HBASE-16638_v2.patch > > > In HBaseResources.scala : > {code} > case class RegionResource(relation: HBaseRelation) extends ReferencedResource { > var connection: Connection = _ > var rl: RegionLocator = _ > ... > override def init(): Unit = { > connection = ConnectionFactory.createConnection(relation.hbaseConf) > {code} > Connection is created per RegionResource. > This is not necessary. > Caching of Connection's should be provided to reduce the number of concurrent Connection's. -- This message was sent by Atlassian JIRA (v6.3.4#6332)