You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2009/07/25 02:58:14 UTC
[jira] Commented: (ZOOKEEPER-487) setdata on root (/) crashes the
servers.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735222#action_12735222 ]
Patrick Hunt commented on ZOOKEEPER-487:
----------------------------------------
Wow, this sucks. :-) Good catch.
Re a 3.1.2, since this is deterministic, and the first anyone has noticed, I think we should be
safe saying prior to 3.2.1 "don't set data on / znode" and leave it at that. It's pretty
atypical anyway and should be easy to work around - set "/root" (whatever) instead.
> setdata on root (/) crashes the servers.
> ----------------------------------------
>
> Key: ZOOKEEPER-487
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-487
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.1.1, 3.2.0
> Reporter: Mahadev konar
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.2.1, 3.3.0
>
> Attachments: ZOOKEEPER-487.patch
>
>
> 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.
> {code}
> 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)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.