-
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
MedusaBackup may have status.finishTime
set to "1970-01-01T00:00:00Z" while backup is in progress
#1301
Comments
status.finishedTime
set to "1970-01-01T00:00:00Z" while backup is in progressstatus.finishTime
set to "1970-01-01T00:00:00Z" while backup is in progress
Hello, I have the same issue on several clusters. The |
Here are some logs to help debug the issue. In the k8ssandra-operator logs, it says that the still "IN_PROGRESS" (but with finished time set to
In my case there is only one node which did not finished the backup, and here are the logs of the medusa container which are repeating:
|
@rzvoncek, did we change something recently that would set the finishTime where it wasn't the case before? |
For information, deleting the |
Hi. I tried to reproduce this, but I could not. On a fresh deployment, I tried starting the sync task always after creating the MedusaBackupJob, but sometimes before that started (got the start timestamp) and sometimes after. I did this on the current main, and 1.14 k8ssandra operator. It might be that I'd need a |
What is the number of replicas of you Cassandra datacenter? I observer that with 1 replica, the issue is hard to reproduce, but with 3 replicas, the issue happened consistently (since backup job will take longer) |
I've got the same issue on 6 node cluster. trying to fix it by cleaning all medusa tasks, backup jobs and schedules, snapshots etc. no luck atm |
Hi folks, the only place where this could happen in the code is here. Nonetheless, this means the sync is running concurrently with a backup which isn't finished yet, and creating that MedusaBackup object. It's most probable that the sync should only locally persist completed backups, since there's nothing to do anyway with incomplete ones. I'll prepare a PR for this, so that if we don't have a finish time we don't sync the MedusaBackup object. |
What happened?
A
MedusaBackup
CR may have the fieldstatus.finishedTime
set to"1970-01-01T00:00:00Z"
while the backup is still in progress.According to https://docs.k8ssandra.io/tasks/backup-restore/#checking-backup-completion , a backup is considered completed when
status.finishedTime
is set.Did you expect to see something different?
I expected the field
status.finishedTime
to not be set while backup is in progress, as stated by documentation.How to reproduce it (as minimally and precisely as possible):
MedusaBackupJob
MedusaTask
in sync mode while the backup job is in pogressIf the backup sync is completed before the backup job is completed, the issue will happen.
Environment
1.14
1.27 and 1.29
EKS, AKS and GKE
Anything else we need to know?:
I'm pretty sure the issue is caused by this line
https://github.com/k8ssandra/k8ssandra-operator/blob/main/controllers/medusa/medusatask_controller.go#L328
It will set
finishTime
to the zero unix timestamp (1970-01-01
)however, the zero
metav1.Time
timestamp is not1970-01-01
but0001-01-01
(January 1, year 1, 00:00:00 UTC)┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: K8OP-30
The text was updated successfully, but these errors were encountered: