oslo.concurrency/releasenotes/notes/log_acquiring_lock-1b224c0b1562ec97.yaml
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

6 lines
122 B
YAML

---
features:
- |
Log before trying to acquire a lock to help detect deadlocks and long waits
to acquire locks.