Report a ReentrantShortLock
that holds a lock for a long time.
#6040
Labels
Milestone
ReentrantShortLock
that holds a lock for a long time.
#6040
ReentrantShortLock
is designed to allow a locking operation in non-blocking threads.ReentrantShortLock
is used cautiously when an operation is finished quickly. It is excluded from the BlockHound rule to avoid false positive reports.armeria/core/src/main/java/com/linecorp/armeria/common/CoreBlockHoundIntegration.java
Lines 36 to 37 in d853651
This causes another issue where a long lock acquisition in
ReentrantShortLock
is not detected.To solve this problem, it would be nice if there was a way to notify through a warning or metric if
ReentrantShortLock
is occupying the lock for more than a certain amount of time. (Suggested by @jrhee17)The text was updated successfully, but these errors were encountered: