aasha commented on a change in pull request #911: HIVE-22865 Include data in 
replication staging directory
URL: https://github.com/apache/hive/pull/911#discussion_r383776695
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
 ##########
 @@ -344,8 +347,14 @@ private Long incrementalDump(Path dumpRoot, DumpMetaData 
dmd, Path cmRoot, Hive
             // Dump the table to be bootstrapped if required.
             if (shouldBootstrapDumpTable(table)) {
               HiveWrapper.Tuple<Table> tableTuple = new HiveWrapper(hiveDb, 
dbName).table(table);
-              dumpTable(dbName, tableName, validTxnList, dbRoot, 
bootDumpBeginReplId, hiveDb,
+              dumpTable(dbName, tableName, validTxnList, dbRoot, dumpRoot, 
bootDumpBeginReplId, hiveDb,
                       tableTuple);
+              Path tableRoot = new Path(dbRoot, tableName);
+              Path dumpDataDir = new Path(dumpRoot, EximUtil.DATA_PATH_NAME);
+              Path tblCopyPath = new Path(dumpDataDir, dbName);
+              tblCopyPath = new Path(tblCopyPath, tableName);
+              Task<?> copyTask = ReplCopyTask.getLoadCopyTask(new 
ReplicationSpec(), tableRoot, tblCopyPath, conf);
 
 Review comment:
   There is a copytask inside the dumpTable method as well

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

Reply via email to