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:09:50 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 758a2efeb -> a439567d1


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

Branch: refs/heads/4.x-HBase-1.1
Commit: c42e0a6a341e1de6767187e935f0b6a94d90dfe5
Parents: 758a2ef
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:05:26 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/c42e0a6a/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