Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2898

Lack of synchronization for childrenCache in ZooCache#getChildren()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.5, 1.7.1, 1.8.0
    • None
    • None

    Description

      For run() method:

            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);
      

      access to childrenCache isn't protected by ZooCache.this

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m