From commits-return-21226-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Fri May 11 23:31:10 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 2B747180647 for ; Fri, 11 May 2018 23:31:10 +0200 (CEST) Received: (qmail 64290 invoked by uid 500); 11 May 2018 21:31:09 -0000 Mailing-List: contact commits-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list commits@phoenix.apache.org Received: (qmail 64279 invoked by uid 99); 11 May 2018 21:31:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2018 21:31:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0DC5FDFFAC; Fri, 11 May 2018 21:31:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rajeshbabu@apache.org To: commits@phoenix.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: phoenix git commit: PHOENIX-4685 Properly handle connection caching for Phoenix inside RegionServers-addendum(Rajeshbabu) Date: Fri, 11 May 2018 21:31:09 +0000 (UTC) Repository: phoenix Updated Branches: refs/heads/5.x-HBase-2.0 ded15dc42 -> e05f2bcea PHOENIX-4685 Properly handle connection caching for Phoenix inside RegionServers-addendum(Rajeshbabu) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/e05f2bce Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e05f2bce Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e05f2bce Branch: refs/heads/5.x-HBase-2.0 Commit: e05f2bceae498573f124d12e5c570af9ca02cf7e Parents: ded15dc Author: Rajeshbabu Chintaguntla Authored: Sat May 12 03:00:49 2018 +0530 Committer: Rajeshbabu Chintaguntla Committed: Sat May 12 03:00:49 2018 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/phoenix/util/ServerUtil.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/e05f2bce/phoenix-core/src/main/java/org/apache/phoenix/util/ServerUtil.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/ServerUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/ServerUtil.java index cccf1c9..d34514d 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/util/ServerUtil.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/util/ServerUtil.java @@ -37,9 +37,7 @@ import org.apache.hadoop.hbase.DoNotRetryIOException; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.NotServingRegionException; import org.apache.hadoop.hbase.TableName; -import org.apache.hadoop.hbase.client.ClusterConnection; import org.apache.hadoop.hbase.client.Connection; -import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment; @@ -366,7 +364,7 @@ public class ServerUtil { } public static Configuration getIndexWriterConfigurationWithCustomThreads(Configuration conf) { - Configuration clonedConfig = PropertiesUtil.cloneConfig(conf); + Configuration clonedConfig = getIndexWriterConnection(conf); setHTableThreads(clonedConfig); return clonedConfig; }