Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 63940f949 -> 9ff02ea24


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

Branch: refs/heads/5.x-HBase-2.0
Commit: 9ff02ea24d21563a011a4cf24882325f23c51726
Parents: 63940f9
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:41:26 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/9ff02ea2/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