You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "ysz (Jira)" <ji...@apache.org> on 2022/05/30 05:26:00 UTC

[jira] [Created] (CURATOR-641) 死锁 deadlock

ysz created CURATOR-641:
---------------------------

             Summary: 死锁  deadlock
                 Key: CURATOR-641
                 URL: https://issues.apache.org/jira/browse/CURATOR-641
             Project: Apache Curator
          Issue Type: Bug
          Components: Recipes
    Affects Versions: 5.2.1
            Reporter: ysz
         Attachments: LockInternals.java

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



--
This message was sent by Atlassian Jira
(v8.20.7#820007)