Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 e83202a2d -> 9c8bb117f


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 9c8bb117fc7f5d2a6393bdbe2fb514d22e30585e
Parents: e83202a
Author: Vikas Vishwakarma <vvishwaka...@salesforce.com>
Authored: Thu Feb 22 05:43:34 2018 +0000
Committer: Pedro Boado <pbo...@apache.org>
Committed: Sat Feb 24 19:42:07 2018 +0000

----------------------------------------------------------------------
 .../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/9c8bb117/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