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

race condition looking at zookeeper nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0
    • master, tserver

    Description

      There's a common pattern used with zookeeper:

      for (String child : zk.getChildren(path)) {
         byte[] content = zk.getData(path + "/" + child, null, null);
         doSomething(content);
      }
      

      The problem is that between the getChildren() call and the getData() call, the child node has gone away.

      We'll typically retry these operations, but it puts big scary messages in the logs.

      Attachments

        Activity

          People

            ecn Eric C. Newton
            ecn Eric C. Newton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: