Closed michaelmdeng closed 5 months ago
@YuJuncen: adding LGTM is restricted to approvers and reviewers in OWNERS files.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: BornChanger, YuJuncen
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Timeline:
2024-04-25 10:07:08.11235261 +0000 UTC m=+254784.852255524
: :ballot_box_with_check: agreed by BornChanger./cherry-pick release-1.5
@csuzhangxc: new pull request created to branch release-1.5
: #5635.
What problem does this PR solve?
Currently warmup script exits w/ error when it encounters corruption. Similar to #5621, this behavior makes sense for checking viability of backups, but conflicts w/ desire to perform a full restore and recover.
When we perform a full restore, if restore encounters corruption, warmup will fail and will cancel the actual warmup of the volumes. Desired behavior is to log the corruption but continue the warmup operation, so that, when complete, if there is only a single corrupt TiKV, we can attempt to recover using functionality added in #5585.
What is changed and how does it work?
Change updates warmup script to only exit/cancel warmup when encountering corruption when explicitly enabled. This is only enabled for
check-wal-only
strategy. Otherwise, we only log the corruption but continue with normal warmup.Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.