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


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java:
##########
@@ -739,6 +741,23 @@ private int executeIncrementalLoad(long loadStartTime) 
throws Exception {
         LOG.info("Dropping table {} for optimised bootstarap", 
work.dbNameToLoadIn + "." + table);
         db.dropTable(work.dbNameToLoadIn + "." + table, true);
       }
+      Database sourceDb = getSourceDbMetadata();  //This sourceDb was the 
actual target prior to failover.
+      Map<String, String> sourceDbProps = sourceDb.getParameters();
+      List<String> replicationProps = MetaStoreUtils.getReplicationDbProps(); 
//Replication Props will be handled separately as part of preAckTask.
+      for (Map.Entry<String, String> currProp : 
targetDb.getParameters().entrySet()) {

Review Comment:
   should we do a pre-filter to avoid the lookups or move replicationProps into 
a HashSet?
   ````
       Map<String, String> props = targetDb.getParameters();
       for (String key : replicationProps) {
         props.remove(key);
       }
   ````



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