Re: Listing the znodes efficiently

2012-05-17 Thread Patrick Hunt
On Thu, May 17, 2012 at 5:04 PM, Narayanan Arunachalam wrote: > Another approach to improve the performance: > For example creating znode to represent something "/abc001" > Compute hash and index of the slot for the resource name using HashMap like > hash() and indexFor() methods. So if the slot

Re: Listing the znodes efficiently

2012-05-17 Thread Narayanan Arunachalam
Another approach to improve the performance: For example creating znode to represent something "/abc001" Compute hash and index of the slot for the resource name using HashMap like hash() and indexFor() methods. So if the slot size is 10 this could result in a number between 0 and 9. Assume we ge

Re: Listing the znodes efficiently

2012-05-17 Thread Patrick Hunt
On Thu, May 17, 2012 at 1:55 PM, Narayanan A R wrote: > Hi, > > Does ZK has or have plans to add the following features: > > - Query znodes under a path by passing filter on the attributes. Sounds intriguing, depending on the details. Might be a good addition to the multi* feature. (not discussed

Re: When Zookeeper 3.4.4 release?

2012-05-17 Thread Patrick Hunt
On Thu, May 17, 2012 at 7:59 AM, Antonio Mauriello wrote: > Hi, > > Is there a release date for Zookeeper 3.4.4 ? We typically discuss things like new releases (ie futures) on the dev list. Good to follow there if you'd like such insights. That said, I'm hoping that we do one once the recent sasl

Re: Should Stat.dataLength return -1 instead of 0 when node content is null?

2012-05-17 Thread Patrick Hunt
On Thu, May 17, 2012 at 2:21 AM, César Álvarez Núñez wrote: > Hi All, > > When I create a node with null data, Stat.dataLength is 0. > When I create a node with byte[0] data, Stat.dataLength is 0. > > I think that in the first case dataLength should return -1 instead of 0. > > Which is your opinio

[jira] [Commented] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Hadoop QA (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278255#comment-13278255 ] Hadoop QA commented on ZOOKEEPER-1467: -- +1 overall. Here are the results of test

Success: ZOOKEEPER-1467 PreCommit Build #1080

2012-05-17 Thread Apache Jenkins Server
Jira: https://issues.apache.org/jira/browse/ZOOKEEPER-1467 Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/1080/ ### ## LAST 60 LINES OF THE CONSOLE ### [

Listing the znodes efficiently

2012-05-17 Thread Narayanan A R
Hi, Does ZK has or have plans to add the following features: - Query znodes under a path by passing filter on the attributes. - Ability to paginate the znodes under a given path. Without this, the app has to pull all the nodes and perform the comparison at the client end. Regards, ARN

[jira] [Commented] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Hadoop QA (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278223#comment-13278223 ] Hadoop QA commented on ZOOKEEPER-1467: -- -1 overall. Here are the results of test

Failed: ZOOKEEPER-1467 PreCommit Build #1079

2012-05-17 Thread Apache Jenkins Server
Jira: https://issues.apache.org/jira/browse/ZOOKEEPER-1467 Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/1079/ ### ## LAST 60 LINES OF THE CONSOLE ### [

[jira] [Updated] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Eugene Koontz (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koontz updated ZOOKEEPER-1467: - Attachment: ZOOKEEPER-1467.patch Improved patch with tests and comments.

[jira] [Updated] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Eugene Koontz (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koontz updated ZOOKEEPER-1467: - Release Note: Allow system property "zookeeper.clusterName", if defined, to be used a

[jira] [Commented] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Eugene Koontz (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278097#comment-13278097 ] Eugene Koontz commented on ZOOKEEPER-1467: -- Hi Laxman, can you take a look at

[jira] [Updated] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Eugene Koontz (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koontz updated ZOOKEEPER-1467: - Attachment: ZOOKEEPER-1467.patch Allows use of the 'zookeeper.clusterName' system pro

[jira] [Assigned] (ZOOKEEPER-1467) Server principal on client side is derived using hostname.

2012-05-17 Thread Eugene Koontz (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koontz reassigned ZOOKEEPER-1467: Assignee: Eugene Koontz > Server principal on client side is derived using

Should Stat.dataLength return -1 instead of 0 when node content is null?

2012-05-17 Thread César Álvarez Núñez
Hi All, When I create a node with null data, Stat.dataLength is 0. When I create a node with byte[0] data, Stat.dataLength is 0. I think that in the first case dataLength should return -1 instead of 0. Which is your opinion? I will create a ticket and try to fix it if you agree. BR, /César.