swift/test
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
..
cors s3api: Allow CORS preflights for pre-signed URLs 2021-07-14 10:52:12 -07:00
functional Include accept-ranges header in s3api response 2023-10-13 16:39:09 +00:00
probe Add non-ascii meta values to ssync probe test 2023-08-03 12:33:56 -07:00
s3api s3api: Add basic GET object-lock support 2023-10-05 16:38:35 +11:00
unit proxy: emit metric when updating namespaces memcache set fails 2023-10-26 18:15:08 +01:00
__init__.py Clean up some cruft 2023-01-19 12:56:08 -08:00
debug_logger.py Merge "proxy: Get rid of MetricsPrefixLoggerAdapter" 2023-09-11 05:10:00 +00:00
sample.conf fix s3api functional tests 2020-05-15 22:38:04 -07:00