Description
describe:
maybe deadlock
question:
the question in org.apache.curator.framework.recipes.locks.LockInternals#attemptLock
and
the question in org.apache.curator.framework.recipes.locks.LockInternals#watcher
detail
When the method named watcher is triggered
But the wait method in the method named attemptLock has not yet been executed
then Will deadlock
The solution is attached