swift/test/unit
Alistair Coles 965908d753 proxy: emit metric when updating namespaces memcache set fails
Previously, if a memcache set command had an unexpected response then
an error was logged but no exception raised from MemcacheRing.set.
With this patch, when MemcacheRing.set fails in this way, a
MemcacheConnectionError will be raised if 'raise_on_error' is
True. This exception is now handled when the proxy tries to set
updating namespaces in memcache, and a counter metric emitted with
name 'object.shard_updating.cache.set_error'. If the set is successful
an 'object.shard_updating.cache.set' counter metric is emitted.

The logging of MemcacheRing errors is improved to include the memcache
key being set, in line with exception logging.

Change-Id: Icfc97751c80f4bb4a3373796c01bff6ed5843937
2023-10-26 18:15:08 +01:00
..
account Add FakeStatsdClient to unit tests 2023-08-07 10:10:45 +01:00
cli Add a swift-reload command 2023-10-16 15:44:06 -07:00
common proxy: emit metric when updating namespaces memcache set fails 2023-10-26 18:15:08 +01:00
container Merge "Add FakeStatsdClient to unit tests" 2023-08-08 20:40:33 +00:00
obj tests: drop pkg_resources from test_auditor.py 2023-10-11 12:04:42 -05:00
proxy proxy: emit metric when updating namespaces memcache set fails 2023-10-26 18:15:08 +01:00
test_locale py3: port the test of locale 2019-06-19 09:54:14 -07:00
__init__.py proxy-server: add replicated GET path tests 2023-09-21 12:02:20 +01:00
helpers.py Unit test for keepalive timeout 2023-05-10 09:01:41 -07:00