[jira] Updated: (ZOOKEEPER-348) Creating node with path ending in / with sequence flag set

2009-04-09 Thread Mahadev konar (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahadev konar updated ZOOKEEPER-348:


  Resolution: Fixed
Hadoop Flags: [Reviewed]
  Status: Resolved  (was: Patch Available)

this has been committed with ZOOKEEPER-355.

 Creating node with path ending in / with sequence flag set
 

 Key: ZOOKEEPER-348
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-348
 Project: Zookeeper
  Issue Type: Bug
  Components: c client
Affects Versions: 3.1.0, 3.1.1
Reporter: Jeff Terrace
Assignee: Patrick Hunt
Priority: Minor
 Fix For: 3.2.0


 In 3.0.1, I could create a sequence node like this:
 /nodes/001
 like this:
 string path = /nodes/;
 string value = data;
 int rc = zoo_acreate(zh, path.c_str(), value.c_str(), value.length(), 
 ZOO_OPEN_ACL_UNSAFE, ZOO_EPHEMERAL | ZOO_SEQUENCE, czoo_created, where);
 In 3.1.1, this fails with error -8 (ZBADARGUMENTS).
 Adding something after the / in the path makes the code work fine:
 string path = /nodes/n;
 I assume something is checking if the path ends in / but not checking the 
 sequence flag.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-348) Creating node with path ending in / with sequence flag set

2009-03-26 Thread Jeff Terrace (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeff Terrace updated ZOOKEEPER-348:
---

Affects Version/s: 3.1.0

Confirmed same issue on 3.1.0

 Creating node with path ending in / with sequence flag set
 

 Key: ZOOKEEPER-348
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-348
 Project: Zookeeper
  Issue Type: Bug
  Components: c client
Affects Versions: 3.1.0, 3.1.1
Reporter: Jeff Terrace
Priority: Minor
 Fix For: 3.2.0


 In 3.0.1, I could create a sequence node like this:
 /nodes/001
 like this:
 string path = /nodes/;
 string value = data;
 int rc = zoo_acreate(zh, path.c_str(), value.c_str(), value.length(), 
 ZOO_OPEN_ACL_UNSAFE, ZOO_EPHEMERAL | ZOO_SEQUENCE, czoo_created, where);
 In 3.1.1, this fails with error -8 (ZBADARGUMENTS).
 Adding something after the / in the path makes the code work fine:
 string path = /nodes/n;
 I assume something is checking if the path ends in / but not checking the 
 sequence flag.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.