Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Platform][2.4] Backup deletion script failure should not cause retries #7988

Closed
sb-yb opened this issue Apr 9, 2021 · 2 comments
Closed
Assignees
Labels
area/platform Yugabyte Platform priority/high High Priority
Milestone

Comments

@sb-yb
Copy link
Contributor

sb-yb commented Apr 9, 2021

When backup reference in yw db is so old that node does not exist anymore. The backup script fails. We should ignore such failure otherwise it keeps retrying and clogs the task framework.
Ideally in future we should have exponential backoff + limit on max retries.

@sb-yb sb-yb self-assigned this Apr 9, 2021
@sb-yb
Copy link
Contributor Author

sb-yb commented Apr 9, 2021

Because #7780 is now fixed; this bug has become critical. We should expect lot of old backup deletion attempts and many of them will fails since they are actually already deleted manually as a workaround.

@sb-yb sb-yb added the priority/high High Priority label Apr 9, 2021
@sb-yb
Copy link
Contributor Author

sb-yb commented Apr 9, 2021

FYI @CharlotteRose

WesleyW added a commit that referenced this issue Apr 9, 2021
Summary:
The `__file__` variable is not set when the `atexit` handlers are called. Instead, store the value
beforehand and save it.

Note: even if the exit handlers error, the return code will not change.

Test Plan: yb_backup

Reviewers: arnav, daniel, sb-yb

Reviewed By: sb-yb

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11206
sb-yb added a commit that referenced this issue Apr 10, 2021
Summary:
- It will always transition backup to deleted state - no matter what and ignore all the errors.
- Removed ton of redundant and unnecessary code.

Test Plan: WIP

Reviewers: wesley

Reviewed By: wesley

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11207
@streddy-yb streddy-yb added this to the 2.7.x milestone Apr 12, 2021
WesleyW added a commit that referenced this issue Apr 12, 2021
Summary:
The `__file__` variable is not set when the `atexit` handlers are called. Instead, store the value
beforehand and save it.

Note: even if the exit handlers error, the return code will not change.

Test Plan: yb_backup

Reviewers: arnav, daniel, sb-yb

Reviewed By: sb-yb

Subscribers: yugaware, jenkins-bot

Differential Revision: https://phabricator.dev.yugabyte.com/D11209
sb-yb added a commit that referenced this issue Apr 12, 2021
Summary:
Backport for ignoring backup deletion failures.
 Original commit: D11207 / 9d00b8b

Test Plan: Unit test

Reviewers: spotachev, wesley

Reviewed By: wesley

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11224
WesleyW added a commit that referenced this issue May 3, 2021
Summary:
The `__file__` variable is not set when the `atexit` handlers are called. Instead, store the value
beforehand and save it.

Backports D11206

Test Plan: Check yb_backup

Reviewers: arnav, daniel, sb-yb, jvigil

Reviewed By: jvigil

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11445
YintongMa pushed a commit to YintongMa/yugabyte-db that referenced this issue May 26, 2021
Summary:
The `__file__` variable is not set when the `atexit` handlers are called. Instead, store the value
beforehand and save it.

Note: even if the exit handlers error, the return code will not change.

Test Plan: yb_backup

Reviewers: arnav, daniel, sb-yb

Reviewed By: sb-yb

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11206
YintongMa pushed a commit to YintongMa/yugabyte-db that referenced this issue May 26, 2021
Summary:
- It will always transition backup to deleted state - no matter what and ignore all the errors.
- Removed ton of redundant and unnecessary code.

Test Plan: WIP

Reviewers: wesley

Reviewed By: wesley

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform Yugabyte Platform priority/high High Priority
Projects
None yet
Development

No branches or pull requests

2 participants