gnocchi cache lock is useless when cache is global
Bug #1746260 reported by
gordon chung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
New
|
Low
|
Unassigned |
Bug Description
when checking cache, we[1]:
1. check cache
2. if missing, create lock,
3. check cache again to see it's not created by another publisher
4. set cache
5. discard lock
it's debatable how useful this is since the lock is local. if the cache is global (redis), the lock only protects the another thread from attempting the same.
To post a comment you must log in.