Bug 865619
Summary: | Adding "large" amounts of metadata to a container or object, then deleting it, can strand metadata keys causing unnecessary reads of those keys | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Gluster-Swift | Reporter: | Peter Portante <pportant> | ||||
Component: | utils | Assignee: | Nobody <nobody> | ||||
Status: | MODIFIED --- | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 1.8.0 | CC: | bugs, pportant | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 903396, 978061 | ||||||
Attachments: |
|
Description
Peter Portante
2012-10-11 22:23:57 UTC
Created attachment 625717 [details] Creates three containers, adds metadata to two, removes from the third, third one left with multiple xattr keys The script does not inspect the gluster file system directly. The user has to go to see the keys on the container, for example: $ python Python 2.6.6 (r266:84292, May 1 2012, 13:52:17) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xattr >>> xattr.list("/mnt/gluster-object/AUTH_ufo0/tcontainer01") ['user.swift.metadata', 'security.selinux'] >>> xattr.list("/mnt/gluster-object/AUTH_ufo0/tcontainer02") ['user.swift.metadata2', 'user.swift.metadata1', 'user.swift.metadata', 'security.selinux'] >>> xattr.list("/mnt/gluster-object/AUTH_ufo0/tcontainer03") ['user.swift.metadata2', 'user.swift.metadata1', 'user.swift.metadata', 'security.selinux'] Where tcontainer03 only has enough metadata to require just one xattr key (see GET output for container 3 in the tar ball generated by the test). I'll take this one, as I am currently working on a set of changes to address this. CHANGE: http://review.gluster.org/4109 (object-storage: reduce the number of getxattr system calls by one) merged in master by Anand Avati (avati) |