SwaraliJoshi opened a new pull request, #8248: URL: https://github.com/apache/hbase/pull/8248
Introduce RestoreSnapshotHFileArchiver as a safe wrapper around HFileArchiver for use by RestoreSnapshotHelper. Before delegating any archive/delete operation, it validates that the target path does not fall under the production HBase root directory (hbase.rootdir). If it does, the operation is blocked with an IOException and an ERROR log to prevent accidental data loss. - Add RestoreSnapshotHFileArchiver with root-dir safety checks for archiveRegion and archiveFamilyByFamilyDir - Update RestoreSnapshotHelper to use RestoreSnapshotHFileArchiver instead of HFileArchiver directly (both call sites) - Add TestRestoreSnapshotHFileArchiver with 7 tests covering root-dir blocking, temp-dir allowing, sibling-path handling, and custom root dirs -- 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]
