ankitsol commented on code in PR #6788:
URL: https://github.com/apache/hbase/pull/6788#discussion_r2117693722


##########
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/IncrementalTableBackupClient.java:
##########
@@ -262,9 +271,13 @@ public void execute() throws IOException, 
ColumnFamilyMismatchException {
       // case PREPARE_INCREMENTAL:
       beginBackup(backupManager, backupInfo);
       backupInfo.setPhase(BackupPhase.PREPARE_INCREMENTAL);
-      LOG.debug("For incremental backup, current table set is "
-        + backupManager.getIncrementalBackupTableSet());
-      newTimestamps = ((IncrementalBackupManager) 
backupManager).getIncrBackupLogFileMap();
+      if (backupInfo.isContinuousBackupEnabled()) {
+        LOG.debug("For incremental backup, current table set is " + 
backupInfo.getTables());
+      } else {
+        LOG.debug("For incremental backup, current table set is "
+          + backupManager.getIncrementalBackupTableSet());
+        newTimestamps = ((IncrementalBackupManager) 
backupManager).getIncrBackupLogFileMap();
+      }

Review Comment:
   Reason: [[HBASE-14038](https://issues.apache.org/jira/browse/HBASE-14038)] 
The incremental backup is controlled by the 'incremental backup table set'.
   For example, if the table set contains (table1, table2, table3). Incremental 
backup will back up the WALs, which cover all the tables in the table set.
   It is to avoid copying the same set of WALs, which would the likely case if 
you backup up table1, then backup table2.
   
   Added in comment in code too



-- 
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: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to