anmolnar commented on code in PR #6847:
URL: https://github.com/apache/hbase/pull/6847#discussion_r2019563632


##########
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java:
##########
@@ -853,6 +869,188 @@ protected void printUsage() {
     }
   }
 
+  /**
+   * The {@code CleanupCommand} class is responsible for removing Write-Ahead 
Log (WAL) and
+   * bulk-loaded files that are no longer needed for Point-in-Time Recovery 
(PITR).
+   * <p>
+   * The cleanup process follows these steps:
+   * <ol>
+   * <li>Identify the oldest full backup and its start timestamp.</li>
+   * <li>Delete WAL files older than this timestamp, as they are no longer 
usable for PITR with any
+   * backup.</li>
+   * </ol>

Review Comment:
   > If this operation can only follow a delete, and WALs are made useless by 
said delete, then should this operation just be a part of the backup deletion 
process?
   
   That's my point as well. We could do this cleanup as part of the backup 
delete command, in which case we don't need to deal with whether this should be 
automatic or manual.



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

Reply via email to