[ 
https://issues.apache.org/jira/browse/HBASE-30602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Geiszler updated HBASE-30602:
-----------------------------------
    Description: 
HBASE-30517 makes it so 
{{CustomBackupLocationPitrRestoreHandler.getBackupMetadata()}} only uses 
backups in a COMPLETE state.  The backup system table cannot be relied on to 
check if backups are complete when a custom backup location is used.  Instead, 
{{getBackupMetadata()}} checks if the {{.backup.complete}} marker file exists 
in the backup's directory.

The problem is that check only covers the *selected* image. An incremental 
backup is restored using its whole ancestor chain. For the ancestors, 
{{BackupUtils.validate()}} only checks if each image's table directory exists. 
This means an incremental backup that has a marker file can be chosen for PITR 
even when one of its ancestors has no marker (such as after a merge failed 
part-way and needs repair).

This was raised in review of HBASE-30517 
([https://github.com/apache/hbase/pull/8835]) and moved to this follow-up.

  was:
HBASE-30517 makes it so 
{{CustomBackupLocationPitrRestoreHandler.getBackupMetadata()}} only uses 
backups in a COMPLETE state.  The backup system table cannot be relied on to 
check if backups are complete when a custom backup location is used.  Instead, 
{{getBackupMetadata()}} checks if the {{.backup.complete}} marker file exists 
in the backup's directory.

The problem is that check only covers the *selected* image. An incremental 
backup is restored through its whole ancestor chain. For the ancestors, 
{{BackupUtils.validate()}} only checks if each image's table directory exists. 
This means an incremental backup that has a marker file can be chosen for PITR 
even when one of its ancestors has no marker (such as after a merge failed 
part-way and needs repair).

This was raised in review of HBASE-30517 
(https://github.com/apache/hbase/pull/8835) and moved to this follow-up.


> PITR with a custom backup location can choose a backup whose ancestor images 
> are incomplete
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-30602
>                 URL: https://issues.apache.org/jira/browse/HBASE-30602
>             Project: HBase
>          Issue Type: Bug
>          Components: backup&restore
>            Reporter: Kevin Geiszler
>            Assignee: Kevin Geiszler
>            Priority: Major
>
> HBASE-30517 makes it so 
> {{CustomBackupLocationPitrRestoreHandler.getBackupMetadata()}} only uses 
> backups in a COMPLETE state.  The backup system table cannot be relied on to 
> check if backups are complete when a custom backup location is used.  
> Instead, {{getBackupMetadata()}} checks if the {{.backup.complete}} marker 
> file exists in the backup's directory.
> The problem is that check only covers the *selected* image. An incremental 
> backup is restored using its whole ancestor chain. For the ancestors, 
> {{BackupUtils.validate()}} only checks if each image's table directory 
> exists. This means an incremental backup that has a marker file can be chosen 
> for PITR even when one of its ancestors has no marker (such as after a merge 
> failed part-way and needs repair).
> This was raised in review of HBASE-30517 
> ([https://github.com/apache/hbase/pull/8835]) and moved to this follow-up.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to