[GitHub] zookeeper issue #584: ZOOKEEPER-3102: Potential race condition when create e...

2018-08-08 Thread MichaelScofield
Github user MichaelScofield commented on the issue: https://github.com/apache/zookeeper/pull/584 @anmolnar Sorry for the late response. I think what @lvfangmin wants to put here, is that `createNode()` is called in single thread, so the race condition does not exist. **IF** there

[GitHub] zookeeper issue #584: ZOOKEEPER-3102: Potential race condition when create e...

2018-07-29 Thread MichaelScofield
Github user MichaelScofield commented on the issue: https://github.com/apache/zookeeper/pull/584 @anmolnar Thanks for the `computeIfAbsent` suggestion. Modified codes accordingly. @breed @lvfangmin I'm aware that `createNode` is single-threaded, and the race condition I rev

[GitHub] zookeeper pull request #584: ZOOKEEPER-3102: Potential race condition when c...

2018-07-25 Thread MichaelScofield
GitHub user MichaelScofield opened a pull request: https://github.com/apache/zookeeper/pull/584 ZOOKEEPER-3102: Potential race condition when create ephemeral nodes. You can merge this pull request into a Git repository by running: $ git pull https://github.com