Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 27d57de73 -> 650666075


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/65066607
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/65066607
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/65066607

Branch: refs/heads/4.x-HBase-1.1
Commit: 650666075be29bfab4d8bb050417db5432e0a94f
Parents: 27d57de
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:01 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/65066607/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