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

K8OP-5 Do not create MedusaBackup if MadusaBakupJob did not fully succeed #1431

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

rzvoncek
Copy link
Contributor

What this PR does:
This PR changes reconciliation of MedusaBackupJob to not create MedusaBackup if there were failures in the job.

It's tricky to test this manually. The only way I found was to kill medusa (the OS process in the container) just after a backup starts.

Which issue(s) this PR fixes:
Fixes #1383

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@rzvoncek rzvoncek requested a review from a team as a code owner October 16, 2024 15:43
@rzvoncek rzvoncek force-pushed the K8OP-5 branch 3 times, most recently from b1c8758 to a536ff0 Compare October 21, 2024 13:48
Copy link
Contributor

@adejanovski adejanovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@@ -72,9 +72,9 @@ func (r *MedusaBackupJobReconciler) Reconcile(ctx context.Context, req ctrl.Requ
return ctrl.Result{}, err
}

backup := instance.DeepCopy()
backupJob := instance.DeepCopy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Good call on renaming this for better clarity!

Copy link

@rzvoncek rzvoncek merged commit 159abc5 into main Oct 30, 2024
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MedusaBackup objects shouldn't be created for unsuccessful backups
2 participants