Container databases not being deleted

asked 2013-08-30 19:15:05 -0600

Hi, i seem to have found a "problem". When we create a container, swift will create a database for that container, and replicate it accordingly. But when i delete the container, the database for that container remains in the system. Even after i delete the account that created that container. Is this normal? Or i'm i missing some service configuration? Thank you for you're help!

Michael

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-30 19:38:39 -0600

torgomatic gravatar image

When you delete a container, it just flags it as deleted at that particular time. This way the deletion can get replicated too.

There's a time period after which it'll get reclaimed, but only when there's activity in the same partition. If you've got an active cluster, it'll get cleaned up eventually. OTOH, if nobody's using the cluster, then the db file will hang out forever, but if nobody's using it, who cares? ;)

edit flag offensive delete link more
0

answered 2013-08-30 19:44:47 -0600

Thank you for your answer! Just to be sure, the only way it will ever be deleted, is if i need that "space"?

edit flag offensive delete link more
0

answered 2013-09-03 12:35:28 -0600

And another question :P what are the odds of it being "cleaned up"? Is it not possible to fill the system with old container databases? I mean, for an old database to be replaced, i assume there would have to be a collision when hashing the url, correct?

edit flag offensive delete link more
0

answered 2013-09-03 19:01:44 -0600

torgomatic gravatar image

Well, I think I was wrong about needing activity in the same partition; that's only for objects. Sorry about that.

Looks like after $reclaim_age seconds, the next pass of the container replicator will clean things up.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-30 19:15:05 -0600

Seen: 18 times

Last updated: Sep 03 '13