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 2008/11/18 20:27:44 UTC
[jira] Created: (ZOOKEEPER-226) exists calls fails on server if
node has null data
exists calls fails on server if node has null data
--------------------------------------------------
Key: ZOOKEEPER-226
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
Project: Zookeeper
Issue Type: Bug
Components: server
Affects Versions: 3.0.0
Reporter: Patrick Hunt
Priority: Blocker
Fix For: 3.0.1, 3.1.0
An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
workaround is to create the node with non-null data.
be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Reed updated ZOOKEEPER-226:
------------------------------------
Hadoop Flags: [Reviewed]
+1 Ready to commit
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
> Attachments: ZOOKEEPER-226.patch
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar reassigned ZOOKEEPER-226:
---------------------------------------
Assignee: Mahadev konar
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649325#action_12649325 ]
Hudson commented on ZOOKEEPER-226:
----------------------------------
Integrated in ZooKeeper-trunk #149 (See [http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/149/])
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
> Attachments: ZOOKEEPER-226.patch
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-226:
------------------------------------
Status: Patch Available (was: Open)
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
> Attachments: ZOOKEEPER-226.patch
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648725#action_12648725 ]
Mahadev konar commented on ZOOKEEPER-226:
-----------------------------------------
java.lang.NullPointerException
at org.apache.zookeeper.server.DataNode.copyStat(DataNode.java:99)
at org.apache.zookeeper.server.DataTree.statNode(DataTree.java:419)
at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(Fina
lRequestProcessor.java:179)
at org.apache.zookeeper.server.SyncRequestProcessor.flush(SyncRequestPro
cessor.java:117)
at org.apache.zookeeper.server.SyncRequestProcessor.run(SyncRequestProce
ssor.java:77)
here is the exception stack trace.
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-226:
------------------------------------
Attachment: ZOOKEEPER-226.patch
this patch fixes the issue and also adds a test.
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
> Attachments: ZOOKEEPER-226.patch
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-226) exists calls fails on server if
node has null data
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-226:
------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
committed to 718799 in trunk
and 718801 in 3.0 branch.
> exists calls fails on server if node has null data
> --------------------------------------------------
>
> Key: ZOOKEEPER-226
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-226
> Project: Zookeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.0.0
> Reporter: Patrick Hunt
> Assignee: Mahadev konar
> Priority: Blocker
> Fix For: 3.0.1, 3.1.0
>
> Attachments: ZOOKEEPER-226.patch
>
>
> An NPE will be generated on the server (and resulting in client getting MarshallingException) if exists() is called on a node with null data.
> workaround is to create the node with non-null data.
> be sure to update the tests for this case
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.