swift/test/unit/common
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
..
middleware Include accept-ranges header in s3api response 2023-10-13 16:39:09 +00:00
ring ring: Centralize device normalization 2023-04-26 15:35:58 -07:00
utils Partially revert "Pull libc-related functions out to a separate module" 2023-08-18 17:50:31 +00:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
corrupted_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_schema_example.db Quarantine malformed database schema SQLite errors 2016-12-01 14:17:02 +11:00
missing_container_info.db Quarantine DB without *_stat row 2018-02-07 19:35:05 +01:00
test_base_storage_server.py Allow replication servers to handle all request methods 2020-07-23 09:11:07 -07:00
test_bufferedhttp.py bufferedhttp: Tolerate socket being None 2021-06-28 16:16:27 -07:00
test_constraints.py Deprecate per-service auto_create_account_prefix 2020-01-05 09:53:30 -06:00
test_container_sync_realms.py Allow floats for a couple more intervals 2021-06-07 15:34:19 -07:00
test_daemon.py Merge "Don't monkey patch logging on import" 2023-04-28 22:44:29 +00:00
test_db.py Fix test assertion 2023-02-09 14:24:29 +00:00
test_db_auditor.py recon: refactor common recon names into a common location 2021-06-29 15:22:57 -07:00
test_db_replicator.py Add FakeStatsdClient to unit tests 2023-08-07 10:10:45 +01:00
test_digest.py formpost: deprecate sha1 signatures 2022-07-26 10:39:58 +10:00
test_direct_client.py direct_client: support extra request params for direct_get_container. 2023-08-17 11:57:22 -07:00
test_error_limiter.py proxy-server: include suppression time in error limit log 2022-11-21 10:52:11 +00:00
test_exceptions.py tests: Clean up some dangling timeouts 2022-01-28 17:48:03 -08:00
test_header_key_dict.py py3: Fix title-casing in HeaderKeyDict 2019-07-25 12:55:03 -07:00
test_http_protocol.py wsgi: bad request syntax response missing txn-id 2023-08-21 16:53:56 -07:00
test_internal_client.py InternalClient: error if allow_modify_pipeline is True 2023-04-14 10:46:45 +01:00
test_linkat.py Fix tests using O_TMPFILE 2018-03-13 12:06:07 +00:00
test_manager.py Swap find_executable for which 2023-09-25 18:58:20 -07:00
test_memcached.py proxy: emit metric when updating namespaces memcache set fails 2023-10-26 18:15:08 +01:00
test_recon.py recon: refactor common recon names into a common location 2021-06-29 15:22:57 -07:00
test_registry.py Add docs for registry module 2022-02-10 11:17:06 -08:00
test_request_helpers.py Improve FakeSwift Backend-Ignore-Range support 2023-09-06 13:06:33 +01:00
test_splice.py No longer import nose 2017-11-07 15:39:25 +11:00
test_storage_policy.py Clean up a bunch of deprecation warnings 2022-12-27 13:34:00 -08:00
test_swob.py fix swob HEAD handling for leak tracking 2023-08-16 23:49:35 +00:00
test_utils.py stats: Round timings at 4 decimal places 2023-10-13 17:27:16 +00:00
test_wsgi.py proxy: Bring back logging/metrics for get_*_info requests 2023-08-01 15:58:58 -07:00