You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Prabhunath Yadav (JIRA)" <ji...@apache.org> on 2016/09/08 11:19:20 UTC

[jira] [Created] (ZOOKEEPER-2568) Node created having name with space can not be delete with delete command

Prabhunath Yadav created ZOOKEEPER-2568:
-------------------------------------------

             Summary: Node created having name with space can not be delete with delete command
                 Key: ZOOKEEPER-2568
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2568
             Project: ZooKeeper
          Issue Type: Bug
          Components: java client, server
    Affects Versions: 3.4.6
         Environment: In java using 
            Reporter: Prabhunath Yadav
            Priority: Minor


For Example : 
String myNode="/MyNode"+new Date() ;
 connector.createNode(newNode, new Date().toString().getBytes());

and createNode is defined as:
public void createNode(String path, byte[] data) throws Exception
    {
        zk.create(path, data, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
    }

if we delete the node from command
delete /MyNodeFri Aug 12 09:42:16 GMT+05:30 2016
 then we get exception saying 
Command failed:java.lang.NumberFormatException: for input string : "Aug" 

How to delete such node except ? may rmr command can remove but why delete command not working ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)