oslo.log/oslo_log/tests/unit
Gorka Eguileor 94b9dc32ec Fix logging in eventlet native threads
There is a bug in eventlet where logging within a native thread can lead
to a deadlock situation: https://github.com/eventlet/eventlet/issues/432

When encountered with this issue some projects in OpenStack using
oslo.log, eg. Cinder, resolve them by removing any logging withing
native threads.

There is actually a better approach. The Swift team came up with a
solution a long time ago [1], and in this patch that fix is included as
part of the setup method, but will only be run if the eventlet library
has already been loaded.

This patch adds the eventlet library as a testing dependency for the
PipeMutext unit tests.

[1]: 69c715c505

Closes-Bug: #1983863
Change-Id: Iac1b0891ae584ce4b95964e6cdc0ff2483a4e57d
2022-08-08 17:09:50 +02:00
..
fixture test_logging_error: build a logger at the test level 2015-12-01 14:08:29 +03:00
__init__.py Move files out of the namespace package 2014-12-17 21:43:41 -05:00
test_convert_json.py drop use of six 2020-03-12 09:28:33 +01:00
test_custom_loghandler.py When record.args is None, it should not give an exception. 2017-04-04 22:46:56 +02:00
test_formatters.py Replace deprecated arguments of RequestContext 2021-07-23 00:24:39 +09:00
test_helpers.py Use unittest.mock instead of third party mock 2020-03-31 14:41:14 -05:00
test_log.py [Fix] init global_request_id if not in context 2022-05-11 11:19:32 +02:00
test_pipe_mutex.py Fix logging in eventlet native threads 2022-08-08 17:09:50 +02:00
test_rate_limit.py Use unittest.mock instead of third party mock 2020-03-31 14:41:14 -05:00
test_versionutils.py Use unittest.mock instead of third party mock 2020-03-31 14:41:14 -05:00