container_info & account_info methods don't cache 404's
Bug #682749 reported by
clayg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
Greg Lange |
Bug Description
In the proxy server, the container_info and account_info methods cache 404's but they don't do anything with them.
These methods should continue to cache 404's (and 200's) but be updated to return None's immediately when they encounter the cache value of 404 without calling out the respective servers.
The "no response" and "mixed results" values (0 and -1) don't need to be cached.
Since we'll be caching non-existence care should be taken to ensure the ObjectControlle
Related branches
lp:~greglange/swift/lp682749
- clayg: Approve
- gholt (community): Approve
-
Diff: 346 lines (+172/-67)2 files modifiedswift/proxy/server.py (+26/-20)
test/unit/proxy/test_server.py (+146/-47)
Changed in swift: | |
status: | New → Fix Committed |
Changed in swift: | |
milestone: | none → 1.2.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.