deniskuzZ commented on code in PR #6966:
URL: https://github.com/apache/hive/pull/6966#discussion_r4644266910


##########
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:
##########
@@ -5776,6 +5774,28 @@ public static enum ConfVars {
         "Comma-separated list of class names extending EventConsumer," +
          "to handle the NotificationEvents retrieved by the notification event 
poll."),
 
+    
HIVE_METADATA_CACHE_NONTRANSACTIONAL_MODE("hive.metadata.cache.nontransactional.mode",
 "off",

Review Comment:
   2 safety questions about the cache for non-transactional tables:
   
   1. If the metastore has no DbNotificationListener, no events arrive, and 
strict would treat the cache as current for up to max.staleness. Can 
HiveServer2 detect that (for example, the event id never moves while the cache 
sees writes) and keep the cache off instead of trusting it?    
   
   2. Should `hive.disable.unsafe.external.table.operations=true` also keep the 
cache off for external tables? A user who sets it doesn't trust external tables 
to stay unchanged, so following that setting would be the conservative choice.  



-- 
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.

To unsubscribe, e-mail: [email protected]

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