phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamestay...@apache.org
Subject [1/4] phoenix git commit: PHOENIX-3910 Tests in UpgradeIT failing after PHOENIX-3823 (Maddineni Sukumar)
Date Wed, 07 Jun 2017 17:13:06 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 378a1884a -> 5735aa511


PHOENIX-3910 Tests in UpgradeIT failing after PHOENIX-3823 (Maddineni Sukumar)


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

Branch: refs/heads/4.x-HBase-1.2
Commit: f3c34957f2e9ddbf79b5f56036c76839fae7530b
Parents: 378a188
Author: James Taylor <jamestaylor@apache.org>
Authored: Tue Jun 6 16:12:16 2017 -0700
Committer: James Taylor <jamestaylor@apache.org>
Committed: Wed Jun 7 10:10:17 2017 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/phoenix/compile/FromCompiler.java  | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f3c34957/phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java b/phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
index c582df9..56dfc90 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
@@ -565,10 +565,11 @@ public class FromCompiler {
             PName tenantId = connection.getTenantId();
             PTable theTable = null;
             if (updateCacheImmediately) {
-                if(mutatingTableName!=null && tableNode!=null ){
-                  if(tableNode.getName().equals(mutatingTableName)){
-                    alwaysHitServer = true;
-                  }
+                //Force update cache when mutating and ref table are same except for meta
tables
+                if(!QueryConstants.SYSTEM_SCHEMA_NAME.equals(schemaName) &&
+                    mutatingTableName!=null && tableNode!=null &&
+                    tableNode.getName().equals(mutatingTableName) ){
+                  alwaysHitServer = true;
                 }
                 MetaDataMutationResult result = client.updateCache(tenantId, schemaName,
tableName, alwaysHitServer);
                 timeStamp = TransactionUtil.getResolvedTimestamp(connection, result);


Mime
View raw message