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 2019/10/09 20:46:55 UTC

[GitHub] [hive] vineetgarg02 commented on a change in pull request #749: HIVE-21344

vineetgarg02 commented on a change in pull request #749: HIVE-21344
URL: https://github.com/apache/hive/pull/749#discussion_r333172647
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
 ##########
 @@ -159,15 +165,36 @@ public void run() {
         SessionState ss = new SessionState(db.getConf());
         ss.setIsHiveServerQuery(true); // All is served from HS2, we do not need e.g. Tez sessions
         SessionState.start(ss);
-        final boolean cache = !db.getConf()
-            .get(HiveConf.ConfVars.HIVE_SERVER2_MATERIALIZED_VIEWS_REGISTRY_IMPL.varname).equals("DUMMY");
-        for (Table mv : db.getAllMaterializedViewObjectsForRewriting()) {
-          addMaterializedView(db.getConf(), mv, OpType.LOAD, cache);
+        if (initialized.get()) {
+          for (Table mvTable : db.getAllMaterializedViewObjectsForRewriting()) {
 
 Review comment:
   I suggest we add a info/perf LOG here to mark the beginning of refresh/initialization. Since we already LOG when it is finished it will give us an idea how long this initialization/refresh spent. This will potentially help debug issues related to performance in future. 

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


With regards,
Apache Git Services

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