Prevent restore from incomplete backup

Description

STR:

1) take backup of sharded cluster

2) remove dump for one shard on the storage

3) try to restore from backup

Expected result:

Restore doesn't start since backup is incomplete

Actual result:

Restore for one shard fails right away, on another - data is restored and afterwards restore is marked as failed (but DB is already in inconsistent state)

Log for partially failed shard:

 

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Time tracking

1d 7h logged

Fix versions

Affects versions

Priority

Smart Checklist

Created May 14, 2020 at 9:21 AM
Updated March 5, 2024 at 7:14 PM
Resolved August 17, 2020 at 5:32 AM