pkumarsinha commented on a change in pull request #2121:
URL: https://github.com/apache/hive/pull/2121#discussion_r672050614
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
##########
@@ -581,7 +661,25 @@ private Long incrementalDump(Path dumpRoot, DumpMetaData
dmd, Path cmRoot, Hive
// factory per event to decode. For now, however, since all messages have
the
// same factory, restricting by message format is effectively a guard
against
// older leftover data that would cause us problems.
- work.overrideLastEventToDump(hiveDb, bootDumpBeginReplId);
+
+ String dbName = work.dbNameOrPattern;
+ Database db = hiveDb.getDatabase(dbName);
+ if (!HiveConf.getBoolVar(conf, REPL_DUMP_METADATA_ONLY)) {
+ setReplSourceFor(hiveDb, dbName, db);
+ }
+ if (conf.getBoolVar(HiveConf.ConfVars.HIVE_REPL_FAILOVER_START)) {
+ work.setFailoverInProgress(true);
+ if (!MetaStoreUtils.isDbBeingFailedOver(db)) {
Review comment:
We will end-up redoing the check
--
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]