ashish-kumar-sharma commented on a change in pull request #2128:
URL: https://github.com/apache/hive/pull/2128#discussion_r642040720



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/SharedCache.java
##########
@@ -2476,6 +2498,25 @@ public boolean isTableConstraintValid(String catName, 
String dbName, String tblN
     return isValid;
   }
 
+  public boolean isTableCacheStale(String catName, String dbName, String 
tblName, String validWriteIdList) {
+    boolean isStale = true;
+
+    if (StringUtils.isEmpty(validWriteIdList))
+      return isStale;

Review comment:
       There is background updater thread which is running in certain interval. 
Which update all table object. We are targeting eventual consistency for cached 
store.  
https://cwiki.apache.org/confluence/display/Hive/Synchronized+Metastore+Cache 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to