-
Notifications
You must be signed in to change notification settings - Fork 43
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 override-lock to other options #47
Comments
I'm not sure if adding an (If you really need a restore of this version you can manually delete the corresponding row from the locks table. After collecting the info mentioned above of course...) |
I actually figure out how to delete the lock yesterday so I won't be able to provide that information. However I can tell you that we hit the lock issue after ctrl+c out of a restore process. |
Okay, so it probably is a left-over of the interrupted restore process (seems that lock clean-up isn't working in all cases). I will have to think about this but I am currently leaning in the direction of not locking the version at all on restore and just issuing a warning. |
I have done a bit of testing and this is what I see. If a ctrl+c out of a restore and let the cleanup run, all is well. However if I ctrl+c the restore and hit ctrl+c a couple more times, it also seems to kill that cleanup process. Not sure if that is something you can address or not. |
While it would be possible to try to catch or ignore these additional SIGINTs I don't think that it is really sustainable long-term. The locking on versions is mainly done to prevent removal of the version while on operation on it is in progress. I'm thinking about replacing the locking with a lease based system. That way things would clean themselves up automatically as soon as the lease expires. |
I like the sounds of that, seems like it would solve multiple issues. |
Great! I just came here to report the same issue. This sounds like a good aproach. But possibly an additional "force-unlock" command would be nice, depending on the intended lease-duration. |
My current plan is to go for a short lease duration (minutes) and renew the lease regularly while an operation is in progress. |
Benji has been going really well. However we just hit this.
(benji) [root@ceph-benji ~]# /usr/local/benji/bin/benji restore -f --sparse V0000001452 file:/benji-bunker/test.img
INFO: $ /usr/local/benji/bin/benji restore -f --sparse V0000001452 file:/benji-bunker/test.img
ERROR: AlreadyLocked: Version V0000001452 is already locked.
Anyway we can get --override-locks added to the restore option?
The text was updated successfully, but these errors were encountered: