hgromer commented on code in PR #6706:
URL: https://github.com/apache/hbase/pull/6706#discussion_r1960646915
##########
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/IncrementalTableBackupClient.java:
##########
@@ -165,20 +166,27 @@ protected List<BulkLoad> handleBulkLoad(List<TableName>
tablesToBackup) throws I
srcTableQualifier);
LOG.trace("copying {} to {}", p, tgt);
}
- activeFiles.add(p.toString());
+ bulkloadInfo.addActiveFile(p.toString());
} else if (fs.exists(archive)) {
LOG.debug("copying archive {} to {}", archive, tgt);
- archiveFiles.add(archive.toString());
+ bulkloadInfo.addArchiveFiles(archive.toString());
}
- mergeSplitBulkloads(activeFiles, archiveFiles, srcTable);
- incrementalCopyBulkloadHFiles(tgtFs, srcTable);
+ toBulkload.put(srcTable, bulkloadInfo);
}
+
+ for (MergeSplitBulkloadInfo bulkloadInfo : toBulkload.values()) {
Review Comment:
This is the important bit. Instead of re-splitting + distcp'ing on a
per-bulkload basis, we do it per table.
--
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]