[ 
https://issues.apache.org/jira/browse/HBASE-16638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15573773#comment-15573773
 ] 

Weiqing Yang edited comment on HBASE-16638 at 10/14/16 1:30 AM:
----------------------------------------------------------------

Actually, the test HBaseConnectionCacheSuite can pass in my local machine. I 
guess, in this QA testing, HBaseConnectionCacheSuite ran slower than it ran in 
the previous QA tests (and my local machine). I am going to submit a new patch 
to update time parameter passed to "HBaseConnectionCache.setTimeout".


was (Author: weiqingyang):
Actually, the test HBaseConnectionCacheSuite can pass in my local machine. I 
guess, in this QA testing, HBaseConnectionCacheSuite ran slower than the 
previous two QA tests (and my local machine). I am going to submit a new patch 
to update time parameter passed to "HBaseConnectionCache.setTimeout".

> 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_ADDENDUM_v1.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)

Reply via email to