Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-487

setdata on root (/) crashes the servers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.1.1, 3.2.0
    • 3.2.1, 3.3.0
    • server
    • None
    • Reviewed

    Description

      setdata on root "/" crashes the servers with the followimg exception. Unfortunately we never had a setdata test on root. The following is the exception. This happens with 3.1.1 as well. We might want to consider releasing 3.1.2 just for this jira.

      java.lang.IllegalArgumentException: Invalid path /
              at org.apache.zookeeper.common.PathTrie.findMaxPrefix(PathTrie.java:255)
              at org.apache.zookeeper.server.DataTree.setData(DataTree.java:543)
              at org.apache.zookeeper.server.DataTree.processTxn(DataTree.java:701)
              at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:94)
              at org.apache.zookeeper.server.SyncRequestProcessor.flush(SyncRequestProcessor.java:127)
              at org.apache.zookeeper.server.SyncRequestProcessor.run(SyncRequestProcessor.java:75)
      

      Attachments

        1. ZOOKEEPER-487.patch
          2 kB
          Mahadev Konar

        Activity

          People

            mahadev Mahadev Konar
            mahadev Mahadev Konar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: