[jira] Created: (ZOOKEEPER-643) please addsupport windows

2010-01-14 Thread zhouyanming (JIRA)
please addsupport windows
-

 Key: ZOOKEEPER-643
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-643
 Project: Zookeeper
  Issue Type: New Feature
Reporter: zhouyanming


add zkServer.bat for windows beside zkServer.sh and other shell 

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



[jira] Updated: (ZOOKEEPER-643) please add support for windows os

2010-01-14 Thread zhouyanming (JIRA)

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

zhouyanming updated ZOOKEEPER-643:
--

Summary: please add support for windows os  (was: please addsupport windows)

 please add support for windows os
 -

 Key: ZOOKEEPER-643
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-643
 Project: Zookeeper
  Issue Type: New Feature
Reporter: zhouyanming

 add zkServer.bat for windows beside zkServer.sh and other shell 

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



Build failed in Hudson: ZooKeeper-trunk #664

2010-01-14 Thread Apache Hudson Server
See http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/664/

--
[...truncated 309363 lines...]
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/fatjar/test
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/fatjar/lib
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/fatjar/test/lib

init-contrib:

compile:
 [echo] contrib: fatjar
[javac] Compiling 1 source file to 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/fatjar/classes

jar:
 [echo] contrib: fatjar
  [jar] Building jar: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/fatjar/zookeeper-3.3.0-fatjar.jar

zookeeperbuildcontrib.package:
 [echo] contrib: fatjar
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar
 [copy] Copying 1 file to 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar

package:
 [copy] Copying 1 file to 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar/conf
 [copy] Copying 1 file to 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar/conf
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar/src
 [copy] Copying 1 file to 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/zookeeper-3.3.0/contrib/fatjar/src

checkMainIsAvailable:

checkMainCompiled:

setjarname:

check-contrib:

init:
 [echo] contrib: rest
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/rest
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/rest/classes
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/rest/test
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/rest/lib
[mkdir] Created dir: 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/build/contrib/rest/test/lib

init-contrib:

ivy-download:

ivy-init:
Trying to override old definition of datatype antlib:org.apache.ivy.ant:settings
Trying to override old definition of task antlib:org.apache.ivy.ant:configure
Trying to override old definition of task antlib:org.apache.ivy.ant:resolve
Trying to override old definition of task antlib:org.apache.ivy.ant:retrieve
Trying to override old definition of task antlib:org.apache.ivy.ant:deliver
Trying to override old definition of task antlib:org.apache.ivy.ant:publish
Trying to override old definition of task antlib:org.apache.ivy.ant:extract
Trying to override old definition of task antlib:org.apache.ivy.ant:cachepath
Trying to override old definition of task antlib:org.apache.ivy.ant:cachefileset
Trying to override old definition of task antlib:org.apache.ivy.ant:report
Trying to override old definition of task antlib:org.apache.ivy.ant:repreport
Trying to override old definition of task antlib:org.apache.ivy.ant:var
Trying to override old definition of task antlib:org.apache.ivy.ant:check
Trying to override old definition of task 
antlib:org.apache.ivy.ant:artifactproperty
Trying to override old definition of task antlib:org.apache.ivy.ant:buildlist
Trying to override old definition of task antlib:org.apache.ivy.ant:install
Trying to override old definition of task antlib:org.apache.ivy.ant:convertpom
Trying to override old definition of task antlib:org.apache.ivy.ant:makepom
Trying to override old definition of task 
antlib:org.apache.ivy.ant:artifactreport
Trying to override old definition of task antlib:org.apache.ivy.ant:info
Trying to override old definition of task antlib:org.apache.ivy.ant:addpath
Trying to override old definition of task antlib:org.apache.ivy.ant:listmodules
Trying to override old definition of task antlib:org.apache.ivy.ant:findrevision
Trying to override old definition of task antlib:org.apache.ivy.ant:buildnumber
Trying to override old definition of task antlib:org.apache.ivy.ant:cleancache

ivy-retrieve:
[ivy:retrieve] :: Ivy 2.1.0-rc2 - 20090704004254 :: http://ant.apache.org/ivy/ 
::
[ivy:retrieve] :: loading settings :: file = 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/ws/trunk/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.zookeeper#rest;3.3.0
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found log4j#log4j;1.2.15 in default
[ivy:retrieve] :: resolution report :: resolve 

[jira] Updated: (ZOOKEEPER-642) exceeded deadline by N ms floods logs

2010-01-14 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-642:
---

Fix Version/s: (was: 3.1.2)
   3.3.0

unfortunately it's not configurable  I'm not sure why 10 was chosen (nothing 
in the
src to indicate. 

What type of ec2 instance is this, small? Is this at all correlated with the
client/clienthost having increased workload?

I think we should make some sort of change here, not sure what. Perhaps this 
should be a % of timeout rather than fixed. Or perhaps made configurable. 
Alternately
we might make this debug (or switch to debug if  some number output in a 
period of
time, etc...)

 exceeded deadline by N ms floods logs
 ---

 Key: ZOOKEEPER-642
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-642
 Project: Zookeeper
  Issue Type: Bug
  Components: c client
Affects Versions: 3.2.1
 Environment: virtualized linux - ec2 - ubuntu
Reporter: Dale Johnson
 Fix For: 3.3.0


 More important zookeeper warnings are drown out by the following several 
 times per minute:
 2010-01-12 17:39:57,227:22317(0x4147eb90):zoo_w...@zookeeper_interest@1335: 
 Exceeded deadline by 13ms
 Perhaps this is an issue with the way virtualized systems manage gettimeofday 
 results?
 Maybe the current 10ms threshold could be pushed up a bit.  I notice that 95% 
 of the messages are below 50ms.
 Is there an obvious configuration change that I can make to fix this?
 config file below:
 # The number of milliseconds of each tick
 tickTime=2000
 # The number of ticks that the initial
 # synchronization phase can take
 initLimit=10
 # The number of ticks that can pass between
 # sending a request and getting an acknowledgement
 syncLimit=5
 # the directory where the snapshot is stored.
 dataDir=/mnt/zookeeper
 # the port at which the clients will connect
 clientPort=2181
 server.1=hbase.1:2888:3888
 server.2=hbase.2:2888:3888
 server.3=hbase.3:2888:3888
 server.4=hbase.4:2888:3888
 server.5=hbase.5:2888:3888

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



[jira] Resolved: (ZOOKEEPER-643) please add support for windows os

2010-01-14 Thread Patrick Hunt (JIRA)

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

Patrick Hunt resolved ZOOKEEPER-643.


Resolution: Duplicate

Already fixed in trunk (slated for 3.3.0) via ZOOKEEPER-426

 please add support for windows os
 -

 Key: ZOOKEEPER-643
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-643
 Project: Zookeeper
  Issue Type: New Feature
Reporter: zhouyanming

 add zkServer.bat for windows beside zkServer.sh and other shell 

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



[jira] Created: (ZOOKEEPER-644) Nightly build failed on hudson.

2010-01-14 Thread Mahadev konar (JIRA)
Nightly build failed on hudson.
---

 Key: ZOOKEEPER-644
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-644
 Project: Zookeeper
  Issue Type: Bug
Reporter: Mahadev konar


the nighthly build has been failing. 
http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/664/. The problem 
seems to be 
{code}
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/ivy/ant/IvyMakePom$Mapping

Total time: 15 minutes 14 seconds
{code}

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



[jira] Commented: (ZOOKEEPER-642) exceeded deadline by N ms floods logs

2010-01-14 Thread Dale Johnson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12800301#action_12800301
 ] 

Dale Johnson commented on ZOOKEEPER-642:


It is a small instance.

When the machine becomes heavily loaded, the times go up quite a bit on
these messages, some into the thousands of milliseconds.  But the
smaller values appear on a pretty regular basis.

Does the warning mean that it's not responded within a single tick?

The message as it is has a fairly low diagnostic value.  I guess if they
happened with enough frequency and that was a signal to get more
zookeeper servers, or that the client hosts were too overloaded, it
could be more helpful.

 exceeded deadline by N ms floods logs
 ---

 Key: ZOOKEEPER-642
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-642
 Project: Zookeeper
  Issue Type: Bug
  Components: c client
Affects Versions: 3.2.1
 Environment: virtualized linux - ec2 - ubuntu
Reporter: Dale Johnson
 Fix For: 3.3.0


 More important zookeeper warnings are drown out by the following several 
 times per minute:
 2010-01-12 17:39:57,227:22317(0x4147eb90):zoo_w...@zookeeper_interest@1335: 
 Exceeded deadline by 13ms
 Perhaps this is an issue with the way virtualized systems manage gettimeofday 
 results?
 Maybe the current 10ms threshold could be pushed up a bit.  I notice that 95% 
 of the messages are below 50ms.
 Is there an obvious configuration change that I can make to fix this?
 config file below:
 # The number of milliseconds of each tick
 tickTime=2000
 # The number of ticks that the initial
 # synchronization phase can take
 initLimit=10
 # The number of ticks that can pass between
 # sending a request and getting an acknowledgement
 syncLimit=5
 # the directory where the snapshot is stored.
 dataDir=/mnt/zookeeper
 # the port at which the clients will connect
 clientPort=2181
 server.1=hbase.1:2888:3888
 server.2=hbase.2:2888:3888
 server.3=hbase.3:2888:3888
 server.4=hbase.4:2888:3888
 server.5=hbase.5:2888:3888

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



[jira] Updated: (ZOOKEEPER-644) Nightly build failed on hudson.

2010-01-14 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-644:
---

Attachment: ZOOKEEPER-644.patch

updated contrib with ivy version as well

 Nightly build failed on hudson.
 ---

 Key: ZOOKEEPER-644
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-644
 Project: Zookeeper
  Issue Type: Bug
  Components: build
Affects Versions: 3.3.0
Reporter: Mahadev konar
 Fix For: 3.3.0

 Attachments: ZOOKEEPER-644.patch


 the nighthly build has been failing. 
 http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/664/. The problem 
 seems to be 
 {code}
 BUILD FAILED
 java.lang.NoClassDefFoundError: org/apache/ivy/ant/IvyMakePom$Mapping
 Total time: 15 minutes 14 seconds
 {code}

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



[jira] Updated: (ZOOKEEPER-644) Nightly build failed on hudson.

2010-01-14 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-644:
---

  Component/s: build
Affects Version/s: 3.3.0
Fix Version/s: 3.3.0
 Assignee: Patrick Hunt

 Nightly build failed on hudson.
 ---

 Key: ZOOKEEPER-644
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-644
 Project: Zookeeper
  Issue Type: Bug
  Components: build
Affects Versions: 3.3.0
Reporter: Mahadev konar
Assignee: Patrick Hunt
 Fix For: 3.3.0

 Attachments: ZOOKEEPER-644.patch


 the nighthly build has been failing. 
 http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/664/. The problem 
 seems to be 
 {code}
 BUILD FAILED
 java.lang.NoClassDefFoundError: org/apache/ivy/ant/IvyMakePom$Mapping
 Total time: 15 minutes 14 seconds
 {code}

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



[jira] Commented: (ZOOKEEPER-644) Nightly build failed on hudson.

2010-01-14 Thread Mahadev konar (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12800329#action_12800329
 ] 

Mahadev konar commented on ZOOKEEPER-644:
-

I just committed this. can you retry the hudson nightly build?


 Nightly build failed on hudson.
 ---

 Key: ZOOKEEPER-644
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-644
 Project: Zookeeper
  Issue Type: Bug
  Components: build
Affects Versions: 3.3.0
Reporter: Mahadev konar
Assignee: Patrick Hunt
 Fix For: 3.3.0

 Attachments: ZOOKEEPER-644.patch


 the nighthly build has been failing. 
 http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/664/. The problem 
 seems to be 
 {code}
 BUILD FAILED
 java.lang.NoClassDefFoundError: org/apache/ivy/ant/IvyMakePom$Mapping
 Total time: 15 minutes 14 seconds
 {code}

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



Hudson build is back to normal: ZooKeeper-trunk #665

2010-01-14 Thread Apache Hudson Server
See http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/665/changes




[jira] Commented: (ZOOKEEPER-638) upgrade ivy to 2.1.0 final from 2.1.0 release candidate

2010-01-14 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12800472#action_12800472
 ] 

Hudson commented on ZOOKEEPER-638:
--

Integrated in ZooKeeper-trunk #665 (See 
[http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/665/])


 upgrade ivy to 2.1.0 final from 2.1.0 release candidate
 ---

 Key: ZOOKEEPER-638
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-638
 Project: Zookeeper
  Issue Type: Improvement
  Components: build
Reporter: Patrick Hunt
Assignee: Patrick Hunt
 Fix For: 3.3.0

 Attachments: ZOOKEEPER-638.patch


 2.1.0 is now available

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



[jira] Commented: (ZOOKEEPER-644) Nightly build failed on hudson.

2010-01-14 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12800473#action_12800473
 ] 

Hudson commented on ZOOKEEPER-644:
--

Integrated in ZooKeeper-trunk #665 (See 
[http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/665/])
. Nightly build failed on hudson. (pat via mahadev)


 Nightly build failed on hudson.
 ---

 Key: ZOOKEEPER-644
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-644
 Project: Zookeeper
  Issue Type: Bug
  Components: build
Affects Versions: 3.3.0
Reporter: Mahadev konar
Assignee: Patrick Hunt
 Fix For: 3.3.0

 Attachments: ZOOKEEPER-644.patch


 the nighthly build has been failing. 
 http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/664/. The problem 
 seems to be 
 {code}
 BUILD FAILED
 java.lang.NoClassDefFoundError: org/apache/ivy/ant/IvyMakePom$Mapping
 Total time: 15 minutes 14 seconds
 {code}

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



[jira] Commented: (ZOOKEEPER-496) zookeeper-tree utility for export, import and incremental updates

2010-01-14 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12800474#action_12800474
 ] 

Hudson commented on ZOOKEEPER-496:
--

Integrated in ZooKeeper-trunk #665 (See 
[http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/665/])


 zookeeper-tree utility for export, import and incremental updates
 -

 Key: ZOOKEEPER-496
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-496
 Project: Zookeeper
  Issue Type: New Feature
  Components: contrib
 Environment: RHEL 4.6, libxml2
Reporter: Anirban Roy
Assignee: Anirban Roy
 Fix For: 3.3.0

 Attachments: zktreeutil.patch, zktreeutil_2.patch

   Original Estimate: 168h
  Remaining Estimate: 168h

 ==
 zktreeutil - Zookeeper Tree Data Utility
 Author: Anirban Roy
 Organization: Yahoo Inc.
 ==
 zktreeutil program is intended to manage and manipulate zk-tree data quickly, 
 effi-
 ciently and with ease. The utility operates on free-form ZK-tree and hence 
 can be used
 for any cluster managed by Zookeeper. Here are the basic functionalities -
 EXPORT: The whole/partial ZK-tree is exported into a XML file. This helps in
 capturing a current snapshot of the data for backup/analysis. For a subtree
 export, one need to specify the path to the ZK-subtree with proper option.
 IMPORT: The ZK-tree can be imported from XML into ZK cluster. This helps in 
 priming
 the new ZK cluster with static configuration. The import can be non-intrusive 
 by
 making only the additions in the existing data. The import of subtree is also
 possible by optionally providing the path to the ZK-subtree.
 DIFF: Creates a diff between live ZK data vs data saved in XML file. Diff can 
 ignore
 some ZK-tree branches (possibly dynamic data) on reading the optional ignore 
 flag
 from XML file. Diffing on a ZK-subtree achieved by providing path to 
 ZK-subtree with
 diff command.
 UPDATE: Make the incremental changes into the live ZK-tree from saved XML, 
 essentia-
 lly after running the diff.
 DUMP: Dumps the ZK-tree on the standard output device reading either from 
 live ZK
 server or XML file. Like export, ZK-subtree can be dumped with optionaly
 providing the path to the ZK-subtree, and till a certain depth of the 
 (sub)tree.
 The exported ZK data into XML file can be shortened by only keeping the 
 static ZK
 nodes which are required to prime a cluster. The dynamic zk nodes (created 
 on-the-
 fly) can be ignored by setting a 'ignore' attribute at the root node of the 
 dynamic
 subtree (see tests/zk_sample.xml), possibly deleting all inner ZK nodes under 
 that.
 Once ignored, the whole subtree is ignored during DIFF, UPDATE and WRITE.

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



[jira] Created: (ZOOKEEPER-645) Bug in WriteLock recipe implementation?

2010-01-14 Thread Jaakko Laine (JIRA)
Bug in WriteLock recipe implementation?
---

 Key: ZOOKEEPER-645
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-645
 Project: Zookeeper
  Issue Type: Bug
Affects Versions: 3.2.2
 Environment: 3.2.2 java 1.6.0_12
Reporter: Jaakko Laine
Priority: Minor


Not sure, but there seem to be two issues in the example WriteLock:

(1) ZNodeName is sorted according to session ID first, and then according to 
znode sequence number. This might cause starvation as lower session IDs always 
get priority. WriteLock is not thread-safe in the first place, so having 
session ID involved in compare operation does not seem to make sense.

(2) if findPrefixInChildren finds previous ID, it should add dir in front of 
the ID

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



[jira] Updated: (ZOOKEEPER-645) Bug in WriteLock recipe implementation?

2010-01-14 Thread Jaakko Laine (JIRA)

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

Jaakko Laine updated ZOOKEEPER-645:
---

Attachment: 645-fix-findPrefixInChildren.patch

Attached patch addresses issue 2 above.


 Bug in WriteLock recipe implementation?
 ---

 Key: ZOOKEEPER-645
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-645
 Project: Zookeeper
  Issue Type: Bug
Affects Versions: 3.2.2
 Environment: 3.2.2 java 1.6.0_12
Reporter: Jaakko Laine
Priority: Minor
 Attachments: 645-fix-findPrefixInChildren.patch


 Not sure, but there seem to be two issues in the example WriteLock:
 (1) ZNodeName is sorted according to session ID first, and then according to 
 znode sequence number. This might cause starvation as lower session IDs 
 always get priority. WriteLock is not thread-safe in the first place, so 
 having session ID involved in compare operation does not seem to make sense.
 (2) if findPrefixInChildren finds previous ID, it should add dir in front of 
 the ID

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