← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1590779] Re: Cache region invalidation works for local CacheRegion object only

 

I am adding keystone because it has some logic for cache invalidation
across projects. Also, we ran into this issue originally on keystone.

The code on
https://github.com/openstack/keystone/blob/stable/mitaka/keystone/common/cache/core.py#L71
is supposed to proxy calls to cache invalidation. Unfortunately, lines
123 and 124 do not set setters and deleters to _hard_invalidated and
_soft_invalidated. This leads to dogpile.cache working like it was not
patched.

** Also affects: keystone
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1590779

Title:
  Cache region invalidation works for local CacheRegion object only

Status in OpenStack Identity (keystone):
  New
Status in oslo.cache:
  In Progress

Bug description:
  oslo_cache uses dogpile.cache's CacheRegion
  which invalidates by setting region object attributes:
  - self._hard_invalidated
  - self._soft_invalidated
  Then it checks these attributes on value get.
  So this invalidation works for particular region object only.

  If there is a need to invalidate a region so that values in it are no
  more valid for other instances of CacheRegion (either in the same
  process or in another one) - it's simply impossible.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1590779/+subscriptions