Closed ti-chi-bot closed 2 months ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign tennix for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
This is an automated cherry-pick of #5634
What problem does this PR solve?
Add cleaning volumes function when restore volume failed. Then we can avoid volume leak
Closes #5638
What is changed and how does it work?
Code changes
Tests
manual test steps:
VolumeComplete
toFailed
to mock restore volume failed scenariotidb.pingcap.com/tikv-volumes-ready
to block tikv creation, then delete the tikv statefulset to detach the EBS volumesSide effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.