ashutosh-bapat commented on a change in pull request #742: HIVE-22068 : Add
more logging to notification cleaner and replication to track events
URL: https://github.com/apache/hive/pull/742#discussion_r315670865
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java
##########
@@ -522,6 +525,41 @@ private int executeIncrementalLoad(DriverContext
driverContext) {
// bootstrap of tables if exist.
if (builder.hasMoreWork() || work.getPathsToCopyIterator().hasNext() ||
work.hasBootstrapLoadTasks()) {
DAGTraversal.traverse(childTasks, new
AddDependencyToLeaves(TaskFactory.get(work, conf)));
+ } else {
+ // Nothing to be done for repl load now. Add a task to update the
last.repl.id of the
+ // target database to the event id of the last event considered by the
dump. Next
+ // incremental cycle if starts from this id, the events considered for
this dump, won't
+ // be considered again.
+
+ // The name of the database to be loaded into is either specified
directly or is
+ // available from the dump metadata.
+ String dbName = work.dbNameToLoadIn;
+ if (dbName == null || StringUtils.isNotBlank(dbName)) {
Review comment:
Thanks for catching this. Fixed.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]