-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add new ConcurrencyPolicy setting to the MedusaBackupSchedule #1204
Add new ConcurrencyPolicy setting to the MedusaBackupSchedule #1204
Conversation
…ent multiple active backups working on the same Datacenter
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1204 +/- ##
==========================================
- Coverage 57.31% 57.28% -0.03%
==========================================
Files 103 103
Lines 10680 10709 +29
==========================================
+ Hits 6121 6135 +14
- Misses 4028 4037 +9
- Partials 531 537 +6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me, but there are a few thing I did not understand (see the questions).
return ctrl.Result{}, err | ||
} else { | ||
if len(activeTasks) > 0 { | ||
logger.V(1).Info("Postponing backup schedule due to existing active backups", "MedusaBackupSchedule", req.NamespacedName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Question]: I've not come across logger.V(1)
yet. What does it do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the same as what in Java you would call for "logger.debug". There's multiple levels (not sure if there's even any limit) of logging you can set, but usually V(1) is for debugging in Go projects and rest are not used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Question] We're adding this (and also the charts/k8ssandra-operator/templates/role.yaml
) file. Why did this happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed them, from another PR (there's nothing wrong having them here, but they're autogenerated on the release process also, so redundant in here).
Quality Gate failedFailed conditions |
…ent multiple active backups working on the same Datacenter
What this PR does:
Prevents multiple backup jobs from running concurrently when targeting the same Datacenter. This works with the internal MedusaBackupScheduler and can be disabled using ConcurrencyPolicy Allow.
Which issue(s) this PR fixes:
Fixes #1203
Checklist