VladRodionov commented on PR #8835:
URL: https://github.com/apache/hbase/pull/8835#issuecomment-7326053613
GPT-6.1 Sol (High) review.
Reviewed current head **`552c3ff304fb`**, all six changed files and
surrounding backup/restore code. The earlier system-table dependency and
swallowed-I/O concerns are fixed.
Two verified P2 findings remain:
1. **[P2] Unmarked ancestors can still participate in PITR.**
[[CustomBackupLocationPitrRestoreHandler.java:78–79](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/CustomBackupLocationPitrRestoreHandler.java#L78-L79)](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/CustomBackupLocationPitrRestoreHandler.java#L78-L79)
checks each candidate’s marker, but admitting an incremental also admits its
dependency chain. [[Dependency
validation](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java#L755-L780)](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java#L755-L780)
only checks directory existence. A filesystem reproducer returned successful
PITR valid
ation for a marked incremental whose unmarked full ancestor contained only an
empty table directory. Check completion markers for the dependencies required
by each requested table. **This is an incomplete fix of existing behavior, not
a newly introduced regression.**
2. **[P2] The recovery advice can re-enable a partially deleted backup.**
[[CustomBackupLocationPitrRestoreHandler.java:90–92](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/CustomBackupLocationPitrRestoreHandler.java#L90-L92)](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/CustomBackupLocationPitrRestoreHandler.java#L90-L92)
recommends recreating the marker after verifying `COMPLETE`. However, [[table
removal](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupAdminImpl.java#L296-L320)](https://github.com/apache/hbase/blob/552c3ff304fb2f4b663fe641c111430087fa558b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupAdminImpl.java#L296-L320)
deliberately removes the marker while leaving the backup `COMPLETE`. With an
injected partial-delete failure, foll
owing this advice made PITR validation accept the damaged image. Restrict the
advice to independently verified intact backups; `COMPLETE` alone is
insufficient.
**Suggestions, not additional verified defects:** document the legacy-backup
marker requirement, and add coverage for metadata reuse and marker invalidation
during restore. I found no separate verified API or concurrency regression.
**Testing:** matching-source reactor build succeeded; all **11 new PR tests
passed**. Both additional [reproducer
tests](/Users/vrodionov/Documents/Codex/2026-12-01/referenced-chatgpt-conversation-this-is-an/outputs/TestReviewUnmarkedAncestor.java)
failed their expected-rejection assertions, confirming the acceptance paths
above. No full restore, HDFS/object-store, or concurrent stress tests were run.
--
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]