oslo.concurrency/oslo_concurrency
Gorka Eguileor 9800d58cb3 Log when waiting to acquire lock
We currently have no log entry when we start trying to acquire a lock.

In general this is ok, but there are cases where it can be problematic,
for example if we have a deadlock situation or if a lock takes a very
long time to be acquired.

In those scenarios looking at the logs we would see the operation
proceed normally and suddenly go completely silent without knowing that
it's waiting for a lock to be freed.

This patch adds a debug log message right before trying to acquire the
lock so we can detect those situations.

Change-Id: I1354dfb98b0927ae167802ecc4ab1d34f6b4d720
2022-07-07 20:01:48 +02:00
..
fixture Use versionadded and versionchanged in doc 2015-11-05 13:31:40 +01:00
locale Imported Translations from Zanata 2022-06-21 03:42:17 +00:00
tests Add support for non-blocking locks 2021-06-24 09:45:48 +02:00
__init__.py Move out of the oslo namespace package 2014-11-14 17:17:25 -05:00
_i18n.py Remove log translations 2017-07-11 02:40:05 +00:00
lockutils.py Log when waiting to acquire lock 2022-07-07 20:01:48 +02:00
opts.py Update hacking version 2019-01-21 19:32:38 -05:00
prlimit.py Remove references to 'sys.version_info' 2021-04-27 02:53:57 +00:00
processutils.py Allow python_exec kwarg to be None 2022-03-01 13:05:22 -05:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00
watchdog.py Use versionadded and versionchanged in doc 2015-11-05 13:31:40 +01:00