Ted Yu created ACCUMULO-2898:
--------------------------------

             Summary: 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)

Reply via email to