accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Havanki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2898) Lack of synchronization for childrenCache in ZooCache#getChildren()
Date Thu, 12 Jun 2014 18:37:03 GMT

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

Bill Havanki commented on ACCUMULO-2898:
----------------------------------------

It looks like this problem also exists for access to {{cache}}, which is accessed from a Runnable
in the same way.

> Lack of synchronization for childrenCache in ZooCache#getChildren()
> -------------------------------------------------------------------
>
>                 Key: ACCUMULO-2898
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2898
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> For run() method:
> {code}
>       public void run(ZooKeeper zooKeeper) throws KeeperException, InterruptedException
{
>         if (childrenCache.containsKey(zPath))
>           return;
>         try {
>           List<String> children = zooKeeper.getChildren(zPath, watcher);
>           childrenCache.put(zPath, children);
> {code}
> access to childrenCache isn't protected by ZooCache.this



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message