yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24127
[Bug 1386047] [NEW] plugin(core, service) is unnecessarily cached and they are implemented variously by many times
Public bug reported:
There are patterns like
@property
def core_plugin(self):
try:
return self._core_plugin
except AttributeError:
self._core_plugin = manager.NeutronManager.get_plugin()
return self._core_plugin
There are issues.
- NeutronManager.get_plugin already cached it. No need to cache again.
- each class implements its own way(with or without cache), various name.
The caching should be removed and their implementation should be unified
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1386047
Title:
plugin(core, service) is unnecessarily cached and they are implemented
variously by many times
Status in OpenStack Neutron (virtual network service):
New
Bug description:
There are patterns like
@property
def core_plugin(self):
try:
return self._core_plugin
except AttributeError:
self._core_plugin = manager.NeutronManager.get_plugin()
return self._core_plugin
There are issues.
- NeutronManager.get_plugin already cached it. No need to cache again.
- each class implements its own way(with or without cache), various name.
The caching should be removed and their implementation should be
unified
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1386047/+subscriptions
Follow ups
References