swift/test/unit/proxy
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
..
controllers Merge "proxy-server: add replicated GET path tests" 2023-09-27 20:17:54 +00:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_mem_server.py Fix socket leak on object-server death 2019-01-31 18:38:35 +00:00
test_server.py proxy: emit metric when updating namespaces memcache set fails 2023-10-26 18:15:08 +01:00
test_sysmeta.py Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00