You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2014/09/10 00:50:30 UTC

[jira] [Created] (HBASE-11923) Potentiial race condition in RecoverableZookeeper.checkZk()

Lars Hofhansl created HBASE-11923:
-------------------------------------

             Summary: Potentiial race condition in RecoverableZookeeper.checkZk()
                 Key: HBASE-11923
                 URL: https://issues.apache.org/jira/browse/HBASE-11923
             Project: HBase
          Issue Type: Sub-task
            Reporter: Lars Hofhansl
            Assignee: Lars Hofhansl
             Fix For: 0.99.0, 2.0.0, 0.98.7, 0.94.24


[~apurtell] pointed out a potential race condition in RecoverableZookeeper.checkZk() that I introduced in parent.

If multiple threads would enter that method at the same time without a valid Zookeeper reference, we could leak Zookeeper objects.

Since this is not a on a hot code path we should just synchronize the two involved methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)