hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the...@apache.org
Subject hive git commit: HIVE-14067 : Rename pendingCount to activeCalls in HiveSessionImpl for easier understanding. (zhihai xu via Thejas Nair)
Date Tue, 19 Jul 2016 05:52:06 GMT
Repository: hive
Updated Branches:
  refs/heads/master 7e5efd0ab -> 1245d0d74


HIVE-14067 : Rename pendingCount to activeCalls in HiveSessionImpl for easier understanding.
(zhihai xu  via Thejas Nair)


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

Branch: refs/heads/master
Commit: 1245d0d74517128e397a8ff45828562870389669
Parents: 7e5efd0
Author: Zhihai Xu <zhihaixu2012@gmail.com>
Authored: Mon Jul 18 22:51:50 2016 -0700
Committer: Thejas Nair <thejas@hortonworks.com>
Committed: Mon Jul 18 22:51:50 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hive/service/cli/session/HiveSessionImpl.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/1245d0d7/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java b/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
index eca02d9..bb53bc6 100644
--- a/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
+++ b/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
@@ -113,7 +113,7 @@ public class HiveSessionImpl implements HiveSession {
 
   private volatile long lastAccessTime;
   private volatile long lastIdleTime;
-  private volatile int pendingCount = 0;
+  private volatile int activeCalls = 0;
   private final Semaphore operationLock;
 
 
@@ -360,7 +360,7 @@ public class HiveSessionImpl implements HiveSession {
     // set the thread name with the logging prefix.
     sessionState.updateThreadName();
     Hive.set(sessionHive);
-    pendingCount++;
+    activeCalls++;
     lastIdleTime = 0;
   }
 
@@ -397,10 +397,10 @@ public class HiveSessionImpl implements HiveSession {
     if (userAccess) {
       lastAccessTime = System.currentTimeMillis();
     }
-    pendingCount--;
+    activeCalls--;
     // lastIdleTime is only set by the last one
     // who calls release with empty opHandleSet.
-    if (pendingCount == 0 && opHandleSet.isEmpty()) {
+    if (activeCalls == 0 && opHandleSet.isEmpty()) {
       lastIdleTime = System.currentTimeMillis();
     }
   }


Mime
View raw message