ayushtkn commented on code in PR #2993:
URL: https://github.com/apache/hive/pull/2993#discussion_r849129703


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadTable.java:
##########
@@ -159,9 +163,9 @@ public TaskTracker tasks(boolean isBootstrapDuringInc) 
throws Exception {
     return tracker;
   }
 
-  private ReplLoadOpType getLoadTableType(Table table, boolean 
isBootstrapDuringInc)
+  private ReplLoadOpType getLoadTableType(Table table, boolean 
isBootstrapDuringInc, boolean isSecondFailover)
           throws InvalidOperationException, HiveException {
-    if (table == null) {
+    if (table == null || isSecondFailover) {

Review Comment:
   I have added a comment explaining the logic. We have a upcoming jira as well 
for the data copy optimisation, this is the first part of 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.

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