pkumarsinha commented on a change in pull request #1804:
URL: https://github.com/apache/hive/pull/1804#discussion_r556254819



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
##########
@@ -968,6 +979,9 @@ private boolean shouldResumePreviousDump(Path lastDumpPath, 
boolean isBootStrap)
       return false;
     }
     Path hiveDumpPath = new Path(lastDumpPath, ReplUtils.REPL_HIVE_BASE_DIR);
+    if (tableExpressionModified(new DumpMetaData(hiveDumpPath, conf))) {

Review comment:
       We can  reuse the  same DumpMetaData object in the below check also, 
would avoid FileSystem read call:
       if (isBootStrap) {
         return shouldResumePreviousDump(new DumpMetaData(hiveDumpPath, conf));
       }
   Second thing, I was also wondering if isBootStrap is true , do we even need 
that check or we can simply return false.




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



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

Reply via email to