swift/test/unit/common
Kota Tsuyuzaki 439fbbdc7b Ensure close socket for memcached if got timeout
Currently MemcacheRing attempts to close socket when Timeout occured at
creating connection in MemcacheConnPool. However unfortunately it could
not because if Timeout happened, the sock variable is not assigned and
None value (initial assignment) will be fed into _exception_occured
method.

This patch added a unit test to confirm the socket.close() called and
fixes the behavior with wrapping try/except in MemcacheConnPool.create
to call close() method.

Change-Id: I7959ab96682f4a459a99c4f92463e1280372f6ef
2021-11-10 01:29:43 +00:00
..
middleware Bug: fix s3api multipart parts listings 2021-09-28 20:59:31 -07:00
ring Close ring gz file after loading 2021-03-10 19:09:13 +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 Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00
test_db.py Consider tombstone count before shrinking a shard 2021-05-07 18:41:18 +01: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 recon: refactor common recon names into a common location 2021-06-29 15:22:57 -07:00
test_direct_client.py Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00
test_exceptions.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_header_key_dict.py py3: Fix title-casing in HeaderKeyDict 2019-07-25 12:55:03 -07:00
test_internal_client.py Drain and close more internal client requests 2021-07-07 14:28:36 -07:00
test_linkat.py Fix tests using O_TMPFILE 2018-03-13 12:06:07 +00:00
test_manager.py Don't require swift be installed to have passing manager tests 2021-03-18 16:35:05 -07:00
test_memcached.py Ensure close socket for memcached if got timeout 2021-11-10 01:29:43 +00:00
test_recon.py recon: refactor common recon names into a common location 2021-06-29 15:22:57 -07:00
test_request_helpers.py Only test with &-delimited query strings 2021-03-18 16:23:23 -07:00
test_splice.py No longer import nose 2017-11-07 15:39:25 +11:00
test_storage_policy.py reconciler: PPI aware reconciler 2021-07-13 13:55:13 +10:00
test_swob.py Quote paths before sending them to swob.Request.blank 2021-05-27 12:22:57 -07:00
test_utils.py Merge "reconstructor: Delay purging reverted non-durable datafiles" 2021-07-02 19:10:04 +00:00
test_wsgi.py Plumb allow_modify_pipeline through run_wsgi/run_server 2021-08-17 17:08:54 -07:00