Empty suffix dirs in accounts and and containers are never removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
David Goetz |
Bug Description
When the db_replicator reclaims old deleted account and container dbs it never attempts to remove the suffix or partition dirs.
For example, on a production system I ran the following script:
import os
empty_partition
not_empty_
empty_suffix_
not_empty_
for partition in os.listdir(
for suffix in os.listdir(
if not os.listdir(
if found_any_file:
else:
print empty_suffix_
print not_empty_
print empty_partition
print not_empty_
And got the following result (for just one drive's containers dir):
2516 empty suffix dirs
3462 not empty suffix dirs
504 empty partition dirs
748 not empty partition dirs
Changed in swift: | |
assignee: | nobody → David Goetz (david-goetz) |
Changed in swift: | |
milestone: | none → 1.7.5 |
status: | Fix Committed → Fix Released |
Fixed in b5509b1, I think.