Repository: phoenix
Updated Branches:
  refs/heads/4.x-cdh5.11.2 556b05443 -> b56a3dbdf


PHOENIX-4625 memory leak in PhoenixConnection if scanner renew lease thread is 
not enabled


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b56a3dbd
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b56a3dbd
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b56a3dbd

Branch: refs/heads/4.x-cdh5.11.2
Commit: b56a3dbdfd29cea0a65f39d317700ceb94a94d7f
Parents: 556b054
Author: Vikas Vishwakarma <vvishwaka...@salesforce.com>
Authored: Thu Feb 22 11:13:34 2018 +0530
Committer: Thomas D'Silva <tdsi...@apache.org>
Committed: Thu Feb 22 10:42:21 2018 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b56a3dbd/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java 
b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
index 4555190..2b428c9 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
@@ -1236,7 +1236,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
     }
 
     public void addIteratorForLeaseRenewal(@Nonnull TableResultIterator itr) {
-        if (services.supportsFeature(Feature.RENEW_LEASE)) {
+        if (services.isRenewingLeasesEnabled()) {
             checkNotNull(itr);
             scannerQueue.add(new WeakReference<TableResultIterator>(itr));
         }

Reply via email to