aasha commented on a change in pull request #1855:
URL: https://github.com/apache/hive/pull/1855#discussion_r572639940



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java
##########
@@ -318,27 +317,38 @@ private void analyzeReplLoad(ASTNode ast) throws 
SemanticException {
         .getEncodedDumpRootPath(conf, sourceDbNameOrPattern.toLowerCase()), 
conf), conf)) {
         throw new 
Exception(ErrorMsg.REPL_FAILED_WITH_NON_RECOVERABLE_ERROR.getMsg());
       }
-      if (loadPath != null) {
-        DumpMetaData dmd = new DumpMetaData(loadPath, conf);
-
-        boolean evDump = false;
-        // we will decide what hdfs locations needs to be copied over here as 
well.
-        if (dmd.isIncrementalDump()) {
-          LOG.debug("{} contains an incremental dump", loadPath);
-          evDump = true;
-        } else {
-          LOG.debug("{} contains an bootstrap dump", loadPath);
-        }
-        ReplLoadWork replLoadWork = new ReplLoadWork(conf, 
loadPath.toString(), sourceDbNameOrPattern,
-                replScope.getDbName(),
-                dmd.getReplScope(),
-                queryState.getLineageState(), evDump, dmd.getEventTo(), 
dmd.getDumpExecutionId(),
-            initMetricCollection(!evDump, loadPath.toString(), 
replScope.getDbName(),
-              dmd.getDumpExecutionId()), dmd.isReplScopeModified());
-        rootTasks.add(TaskFactory.get(replLoadWork, conf));
-      } else {
+
+      if (loadPath == null) {
+        return;

Review comment:
       Add a log line.




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