Lock not released on exception

Code reviewMedium25 min

Your task

Review this Java method using an explicit ReentrantLock.

What concurrency-relevant failure does this have?