You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/16 19:25:41 UTC

[jira] [Commented] (ZOOKEEPER-2726) Patch for ZOOKEEPER-2693 introduces potential race condition

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928688#comment-15928688 ] 

ASF GitHub Bot commented on ZOOKEEPER-2726:
-------------------------------------------

GitHub user knusbaum opened a pull request:

    https://github.com/apache/zookeeper/pull/196

    ZOOKEEPER-2726: Patch for ZOOKEEPER-2693 introduces potential race condition

    Synchronizing these methods prevents potential race conditions.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/knusbaum/zookeeper ZOOKEEPER-2726-master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zookeeper/pull/196.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #196
    
----
commit 3c79d303aaaf105e129580b7d9fe450944f4173b
Author: Kyle Nusbaum <kn...@yahoo-inc.com>
Date:   2017-03-16T19:22:45Z

    Synchronizing 4lw methods

----


> Patch for ZOOKEEPER-2693 introduces potential race condition
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2726
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2726
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Kyle Nusbaum
>
> We noticed when porting the patch, that isEnabled is not thread-safe. 
> Synchronizing it and resetWhitelist should solve the issue.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)