thelastpickle / cassandra-medusa

Apache Cassandra Backup and Restore Tool
Apache License 2.0
266 stars 143 forks source link

Unable to delete a backup #771

Open pvb05 opened 6 months ago

pvb05 commented 6 months ago

Project board link

Hi,

I have deployed Medusa 0.21.0 in GRPC mode running alongside Cassandra in a pod. I took few backups and I am now trying to delete a few of them using the gRPC client. It throws the following error message "Backup manager has no backups on record". I went through the code (server.py) and it looks like the BackupMap keeps track of all the backups that are taken since the pod/medusa container restart and nothing prior to it.

Is this a known issue?

thanks, Pradeep V.B.

┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: MED-6

rzvoncek commented 5 months ago

Hi @pvb05 !

Yes, we've had similar issues with listing backups here and here.

I believe it'd be correct to have the DeleteBackup endpoint "remember" exising backups even after the pod restarts. That would be a feature we can use this issue for.

In the meanwhile, could you please try to do call the GetBackup first, and DeleteBackup second? Doing this should make the BackupMan remember the backup and not complain when deleting it.