You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/04/07 09:56:28 UTC

[GitHub] [hive] adesh-rao commented on a change in pull request #2128: HIVE-23571: Add ValidWriteIdList to SharedCache.TableWrapper

adesh-rao commented on a change in pull request #2128:
URL: https://github.com/apache/hive/pull/2128#discussion_r608511275



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

Review comment:
       nit: add braces.
   
   Also, should we return true? if validWriteId is not present, we can safely assume that 




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org