Ask Your Question
0

how to reclaim account in swift?

asked 2014-07-04 09:03:25 -0500

ebyenjoys gravatar image

Hello,

Is there any way to reclaim an account? I found few parameters like recliam_age in account configuration in the storage node of swift. could anyone enlight me regarding the reclaim of swift account?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-19 11:51:14 -0500

briancline gravatar image

In the context of the reclaim_age setting, that's simply the minimum amount of time that must pass before an account that has been marked as deleted has its containers, objects, and ultimately the account itself removed from disk -- this process is called reaping, and is what the account-reaper performs. A DELETE simply marks the account and its data as deleted so that the reaper can easily figure out what work it needs to do the next time it wakes up to do its work. Between the time a DELETE is issued against an account and the time it is reaped, in the mean time you will see 410 Gone responses if you GET/HEAD the account, with an X-Deleted header also present. This would normally be the window of opportunity to "undo" such an operation, if you had some way of first knowing whether the account reaper was already in the process of removing data within the account.

At this time, it is not possible to "un-delete" an account in Swift prior to it being reaped, as it would require updating each container's status, each subsequent object's statuses, content types, etc. Without adding additional fields to the account and container databases, or modifying the behavior of deletions, this would require quite a bit of work for Swift to accomplish, and you'd quickly run into a race condition with the account-reaper process wherein you might only half-recover a deleted account. It also isn't something you'd want to attempt manually on the account/container/object servers, either, since there's an incredible amount of room for human error in performing all the operations needed to do so, and you'd also be fighting against replication in attempting to reverse all the changes made by the original account DELETE operation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-04 09:03:25 -0500

Seen: 429 times

Last updated: Jul 04 '14