[jira] Commented: (ZOOKEEPER-492) the tests should have their own log4j.properties

2010-08-16 Thread Abmar Barros (JIRA)

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

Abmar Barros commented on ZOOKEEPER-492:


I have just checked out the ZooKeeper trunk in Eclipse (running on Windows) and 
3/5 tests from the QuorumPeerMainTest fail due to a NullPointerException while 
recovering CONSOLE appender. Is this supposed to happen?

 the tests should have their own log4j.properties
 

 Key: ZOOKEEPER-492
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-492
 Project: Zookeeper
  Issue Type: Bug
  Components: tests
Affects Versions: 3.1.1, 3.2.0
Reporter: Patrick Hunt
Priority: Minor
 Fix For: 3.4.0


 the tests currently rely (QuorumPeerMainTest in particular) on 
 conf/log4j.properties. if the user changes this file
 and then runs the tests the tests may fail. the tests should have their own 
 log4j.properties maintained w/in the test
 directory itself, separate from conf/log4j.properties

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



first try on new java client available

2010-08-16 Thread Thomas Koch
Hi,

at http://github.com/thkoch2001/zookeeper/tree/operation_classes you can take 
a look at the first try of my team for a new ZooKeeper java client API. I'm 
aware of some remaining bugs in the code (watches don't work!), but you can 
already see, how the end result should look like.
The changes with their motivation are described in 
http://issues.apache.org/jira/browse/ZOOKEEPER-835 and it's sub issues.

Most notable:

- backwards compatibility
- many executors with different changeroots can share one ClientCnxn
- removal of many code duplications. The operation methods inside the 
ZooKeeper class now look like:

Create op = new Create(new Path(path), data, acl, createMode);  
executor.execute(op);
return op.getResponsePath().toString();

and for the asynchronous version:

Create op = new Create(new Path(path), null, acl, createMode);
executor.send(op, cb, ctx);

An Executor knows the ClientCnxn and a changeroot.

Our current code is only a very fast implementation so that my team can start 
using it. I'll wait for ZOOKEEPER-823 to get committed and afterwards send our 
changes in small incremental patches to jira.

We hope we find your approval for our proposal!

Best regards,

Thomas Koch, http://www.koch.ro


[jira] Commented: (ZOOKEEPER-784) server-side functionality for read-only mode

2010-08-16 Thread Sergey Doroshenko (JIRA)

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

Sergey Doroshenko commented on ZOOKEEPER-784:
-

Thanks Henry! Eagerly looking forward to another +1 and getting r-o mode into 
the trunk

I also have a patch that applies above ZOOKEEPER-733 changes, so if those go to 
the trunk first, I'll upload the patch

 server-side functionality for read-only mode
 

 Key: ZOOKEEPER-784
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-784
 Project: Zookeeper
  Issue Type: Sub-task
  Components: server
Reporter: Sergey Doroshenko
Assignee: Sergey Doroshenko
 Fix For: 3.4.0

 Attachments: ZOOKEEPER-784.patch, ZOOKEEPER-784.patch, 
 ZOOKEEPER-784.patch, ZOOKEEPER-784.patch, ZOOKEEPER-784.patch, 
 ZOOKEEPER-784.patch, ZOOKEEPER-784.patch, ZOOKEEPER-784.patch


 As per http://wiki.apache.org/hadoop/ZooKeeper/GSoCReadOnlyMode , create 
 ReadOnlyZooKeeperServer which comes into play when peer is partitioned.

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



[jira] Assigned: (ZOOKEEPER-840) massive code duplication in zookeeper class

2010-08-16 Thread Thomas Koch (JIRA)

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

Thomas Koch reassigned ZOOKEEPER-840:
-

Assignee: Thomas Koch

 massive code duplication in zookeeper class
 ---

 Key: ZOOKEEPER-840
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-840
 Project: Zookeeper
  Issue Type: Sub-task
Reporter: Patrick Datko
Assignee: Thomas Koch

 Each operation calls validatePath, handles the chroot, calls ClientCnxn and 
 checks the return header for error. I'd like to address this with the 
 operation classes:
 Each operation should receive a prechecked Path object. Calling ClientCnxn 
 and 
 error checking is not (or only partly) the concern of the operation but of an 
 executor like class.

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



[jira] Commented: (ZOOKEEPER-787) groupId in deployed pom is wrong

2010-08-16 Thread Olaf Krische (JIRA)

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

Olaf Krische commented on ZOOKEEPER-787:


checked with 3.3.1 and works for me.

thank you!

 groupId in deployed pom is wrong
 

 Key: ZOOKEEPER-787
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-787
 Project: Zookeeper
  Issue Type: Bug
Affects Versions: 3.3.1
Reporter: Chris Conrad
Priority: Blocker
 Fix For: 3.3.2, 3.4.0


 The pom deployed to repo1.maven.org has the project declared like this:
 groupIdorg.apache.zookeeper/groupId
 artifactIdzookeeper/artifactId
 packagingjar/packaging
 version3.3.1/version
 But it is deployed here: 
 http://repo2.maven.org/maven2/org/apache/hadoop/zookeeper/3.3.1
 So either the groupId needs to change or the location it is deployed to needs 
 to be changed because having them different results in bad behavior.  If you 
 specify the correct groupId in your own pom/ivy files you can't even download 
 zookeeper because it's not where your pom says it is and if you use the 
 incorrect groupId then you can download zookeeper but then ivy complains 
 about:
 [error] :: problems summary ::
 [error]  ERRORS
 [error]   public: bad organisation found in 
 http://repo1.maven.org/maven2/org/apache/hadoop/zookeeper/3.3.1/zookeeper-3.3.1.pom:
  expected='org.apache.hadoop' found='org.apache.zookeeper'

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



[jira] Created: (ZOOKEEPER-849) Provide Path class

2010-08-16 Thread Thomas Koch (JIRA)
Provide Path class
--

 Key: ZOOKEEPER-849
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-849
 Project: Zookeeper
  Issue Type: Sub-task
Reporter: Thomas Koch
Assignee: Thomas Koch




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



[jira] Updated: (ZOOKEEPER-850) Switch from log4j to slf4j

2010-08-16 Thread Olaf Krische (JIRA)

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

Olaf Krische updated ZOOKEEPER-850:
---

Description: 
Hello,

i would like to see slf4j integrated into the zookeeper instead of relying 
explicitly on log4j.

slf4j is an abstract logging framework. There are adapters from slf4j to many 
logger implementations, one of them is log4j.

The decision which log engine to use i dont like to make so early.

This would help me to embed zookeeper in my own applications (which use a 
different logger implemenation, but slf4j is the basis)

What do you think?

(as i can see, those slf4j request flood all other projects on apache as well 
:-)

Maybe for 3.4 or 4.0?

I can offer a patchset, i have experience in such an migration already. :-)

  was:
Hello,

i would like to see slf4j integrated into the zookeeper instead of relying 
explicitly on log4j.

slf4j is an abstract logging framework. There are adapters from slf4j to many 
logger implementations, one of them is log4j.

The decision which log engine to use i like not make so early.

This would help me to embed zookeeper in my own applications (which use a 
different logger implemenation, but slf4j is the basis)

What do you think?

(as i can see, those slf4j request flood all other projects on apache as well 
:-)

Maybe for 3.4 or 4.0?

I can offer a patchset, i have experience in such an migration already. :-)


 Switch from log4j to slf4j
 --

 Key: ZOOKEEPER-850
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-850
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: Olaf Krische

 Hello,
 i would like to see slf4j integrated into the zookeeper instead of relying 
 explicitly on log4j.
 slf4j is an abstract logging framework. There are adapters from slf4j to many 
 logger implementations, one of them is log4j.
 The decision which log engine to use i dont like to make so early.
 This would help me to embed zookeeper in my own applications (which use a 
 different logger implemenation, but slf4j is the basis)
 What do you think?
 (as i can see, those slf4j request flood all other projects on apache as well 
 :-)
 Maybe for 3.4 or 4.0?
 I can offer a patchset, i have experience in such an migration already. :-)

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



[jira] Created: (ZOOKEEPER-850) Switch from log4j to slf4j

2010-08-16 Thread Olaf Krische (JIRA)
Switch from log4j to slf4j
--

 Key: ZOOKEEPER-850
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-850
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: Olaf Krische


Hello,

i would like to see slf4j integrated into the zookeeper instead of relying 
explicitly on log4j.

slf4j is an abstract logging framework. There are adapters from slf4j to many 
logger implementations, one of them is log4j.

The decision which log engine to use i like not make so early.

This would help me to embed zookeeper in my own applications (which use a 
different logger implemenation, but slf4j is the basis)

What do you think?

(as i can see, those slf4j request flood all other projects on apache as well 
:-)

Maybe for 3.4 or 4.0?

I can offer a patchset, i have experience in such an migration already. :-)

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



[jira] Updated: (ZOOKEEPER-785) Zookeeper 3.3.1 shouldn't infinite loop if someone creates a server.0 line

2010-08-16 Thread Andrei Savu (JIRA)

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

Andrei Savu updated ZOOKEEPER-785:
--

Attachment: ZOOKEEPER-785.patch

I've added the warning message as Benjamin suggested. The patch also applies 
cleanly on the 3.3 branch. 

  Zookeeper 3.3.1 shouldn't infinite loop if someone creates a server.0 line
 ---

 Key: ZOOKEEPER-785
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-785
 Project: Zookeeper
  Issue Type: Bug
  Components: server
Affects Versions: 3.3.1
 Environment: Tested in linux with a new jvm
Reporter: Alex Newman
Assignee: Patrick Hunt
 Fix For: 3.3.2, 3.4.0

 Attachments: ZOOKEEPER-785.patch, ZOOKEEPER-785.patch


 The following config causes an infinite loop
 [zoo.cfg]
 tickTime=2000
 dataDir=/var/zookeeper/
 clientPort=2181
 initLimit=10
 syncLimit=5
 server.0=localhost:2888:3888
 Output:
 2010-06-01 16:20:32,471 - INFO [main:quorumpeerm...@119] - Starting quorum 
 peer
 2010-06-01 16:20:32,489 - INFO [main:nioservercnxn$fact...@143] - binding to 
 port 0.0.0.0/0.0.0.0:2181
 2010-06-01 16:20:32,504 - INFO [main:quorump...@818] - tickTime set to 2000
 2010-06-01 16:20:32,504 - INFO [main:quorump...@829] - minSessionTimeout set 
 to -1
 2010-06-01 16:20:32,505 - INFO [main:quorump...@840] - maxSessionTimeout set 
 to -1
 2010-06-01 16:20:32,505 - INFO [main:quorump...@855] - initLimit set to 10
 2010-06-01 16:20:32,526 - INFO [main:files...@82] - Reading snapshot 
 /var/zookeeper/version-2/snapshot.c
 2010-06-01 16:20:32,547 - INFO [Thread-1:quorumcnxmanager$liste...@436] - My 
 election bind port: 3888
 2010-06-01 16:20:32,554 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@620] - LOOKING
 2010-06-01 16:20:32,556 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@649] - New election. My 
 id = 0, Proposed zxid = 12
 2010-06-01 16:20:32,558 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@689] - Notification: 0, 
 12, 1, 0, LOOKING, LOOKING, 0
 2010-06-01 16:20:32,560 - WARN 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@623] - Unexpected exception
 java.lang.NullPointerException
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(FastLeaderElection.java:496)
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:709)
 at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:621)
 2010-06-01 16:20:32,560 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@620] - LOOKING
 2010-06-01 16:20:32,560 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@649] - New election. My 
 id = 0, Proposed zxid = 12
 2010-06-01 16:20:32,561 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@689] - Notification: 0, 
 12, 2, 0, LOOKING, LOOKING, 0
 2010-06-01 16:20:32,561 - WARN 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@623] - Unexpected exception
 java.lang.NullPointerException
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(FastLeaderElection.java:496)
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:709)
 at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:621)
 2010-06-01 16:20:32,561 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@620] - LOOKING
 2010-06-01 16:20:32,562 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@649] - New election. My 
 id = 0, Proposed zxid = 12
 2010-06-01 16:20:32,562 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@689] - Notification: 0, 
 12, 3, 0, LOOKING, LOOKING, 0
 2010-06-01 16:20:32,562 - WARN 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@623] - Unexpected exception
 java.lang.NullPointerException
 Things like HBase require that the zookeeper servers be listed in the 
 zoo.cfg. This is a bug on their part, but zookeeper shouldn't null pointer in 
 a loop though.

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



[jira] Updated: (ZOOKEEPER-785) Zookeeper 3.3.1 shouldn't infinite loop if someone creates a server.0 line

2010-08-16 Thread Andrei Savu (JIRA)

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

Andrei Savu updated ZOOKEEPER-785:
--

Status: Patch Available  (was: Open)

  Zookeeper 3.3.1 shouldn't infinite loop if someone creates a server.0 line
 ---

 Key: ZOOKEEPER-785
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-785
 Project: Zookeeper
  Issue Type: Bug
  Components: server
Affects Versions: 3.3.1
 Environment: Tested in linux with a new jvm
Reporter: Alex Newman
Assignee: Patrick Hunt
 Fix For: 3.3.2, 3.4.0

 Attachments: ZOOKEEPER-785.patch, ZOOKEEPER-785.patch


 The following config causes an infinite loop
 [zoo.cfg]
 tickTime=2000
 dataDir=/var/zookeeper/
 clientPort=2181
 initLimit=10
 syncLimit=5
 server.0=localhost:2888:3888
 Output:
 2010-06-01 16:20:32,471 - INFO [main:quorumpeerm...@119] - Starting quorum 
 peer
 2010-06-01 16:20:32,489 - INFO [main:nioservercnxn$fact...@143] - binding to 
 port 0.0.0.0/0.0.0.0:2181
 2010-06-01 16:20:32,504 - INFO [main:quorump...@818] - tickTime set to 2000
 2010-06-01 16:20:32,504 - INFO [main:quorump...@829] - minSessionTimeout set 
 to -1
 2010-06-01 16:20:32,505 - INFO [main:quorump...@840] - maxSessionTimeout set 
 to -1
 2010-06-01 16:20:32,505 - INFO [main:quorump...@855] - initLimit set to 10
 2010-06-01 16:20:32,526 - INFO [main:files...@82] - Reading snapshot 
 /var/zookeeper/version-2/snapshot.c
 2010-06-01 16:20:32,547 - INFO [Thread-1:quorumcnxmanager$liste...@436] - My 
 election bind port: 3888
 2010-06-01 16:20:32,554 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@620] - LOOKING
 2010-06-01 16:20:32,556 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@649] - New election. My 
 id = 0, Proposed zxid = 12
 2010-06-01 16:20:32,558 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@689] - Notification: 0, 
 12, 1, 0, LOOKING, LOOKING, 0
 2010-06-01 16:20:32,560 - WARN 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@623] - Unexpected exception
 java.lang.NullPointerException
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(FastLeaderElection.java:496)
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:709)
 at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:621)
 2010-06-01 16:20:32,560 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@620] - LOOKING
 2010-06-01 16:20:32,560 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@649] - New election. My 
 id = 0, Proposed zxid = 12
 2010-06-01 16:20:32,561 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@689] - Notification: 0, 
 12, 2, 0, LOOKING, LOOKING, 0
 2010-06-01 16:20:32,561 - WARN 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@623] - Unexpected exception
 java.lang.NullPointerException
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(FastLeaderElection.java:496)
 at 
 org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:709)
 at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:621)
 2010-06-01 16:20:32,561 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@620] - LOOKING
 2010-06-01 16:20:32,562 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@649] - New election. My 
 id = 0, Proposed zxid = 12
 2010-06-01 16:20:32,562 - INFO 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@689] - Notification: 0, 
 12, 3, 0, LOOKING, LOOKING, 0
 2010-06-01 16:20:32,562 - WARN 
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@623] - Unexpected exception
 java.lang.NullPointerException
 Things like HBase require that the zookeeper servers be listed in the 
 zoo.cfg. This is a bug on their part, but zookeeper shouldn't null pointer in 
 a loop though.

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



[jira] Created: (ZOOKEEPER-851) ZK lets any node to become an observer

2010-08-16 Thread Vishal K (JIRA)
ZK lets any node to become an observer
--

 Key: ZOOKEEPER-851
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-851
 Project: Zookeeper
  Issue Type: Bug
Reporter: Vishal K
 Fix For: 3.3.1


I had a 3 node cluster running. The zoo.cfg on each contained 3 entries as show 
below:

tickTime=2000
dataDir=/var/zookeeper
clientPort=2181
initLimit=5
syncLimit=2
server.0=10.150.27.61:2888:3888
server.1=10.150.27.62:2888:3888
server.2=10.150.27.63:2888:3888

I wanted to add another node to the cluster. In fourth node's zoo.cfg, I 
created another entry for that node and started zk server. The zoo.cfg on the 
first 3 nodes was left unchanged. The fourth node was able to join the cluster 
even though the 3 nodes had no idea about the fourth node.

zoo.cfg on fourth node:
tickTime=2000
dataDir=/var/zookeeper
clientPort=2181
initLimit=5
syncLimit=2
server.0=10.150.27.61:2888:3888
server.1=10.150.27.62:2888:3888
server.2=10.150.27.63:2888:3888
server.3=10.17.117.71:2888:3888

It looks like 10.17.117.71 is becoming an observer in this case. I was 
expecting that the leader will reject 10.17.117.71.

# telnet 10.17.117.71 2181
Trying 10.17.117.71...
Connected to 10.17.117.71.
Escape character is '^]'.
stat
Zookeeper version: 3.3.0--1, built on 04/02/2010 22:40 GMT
Clients:
 /10.17.117.71:37297[1](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/0/0
Received: 3
Sent: 2
Outstanding: 0
Zxid: 0x20065
Mode: follower
Node count: 288

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



[jira] Commented: (ZOOKEEPER-492) the tests should have their own log4j.properties

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt commented on ZOOKEEPER-492:


It happens today because we rely on a particular setup of log4j, in eclipse if 
you don't add the conf directory to the run as junit test classpath it won't 
pick up that log4j.properties and as a result the test will fail. try that. We 
should have a test specific log4j.properties (hence this jira).

 the tests should have their own log4j.properties
 

 Key: ZOOKEEPER-492
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-492
 Project: Zookeeper
  Issue Type: Bug
  Components: tests
Affects Versions: 3.1.1, 3.2.0
Reporter: Patrick Hunt
Priority: Minor
 Fix For: 3.4.0


 the tests currently rely (QuorumPeerMainTest in particular) on 
 conf/log4j.properties. if the user changes this file
 and then runs the tests the tests may fail. the tests should have their own 
 log4j.properties maintained w/in the test
 directory itself, separate from conf/log4j.properties

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



[jira] Commented: (ZOOKEEPER-850) Switch from log4j to slf4j

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt commented on ZOOKEEPER-850:


I think it's reasonable, is it fully backward compatible? What are the 
implications/impact for end users (ie what will they have to change, will they 
see any changes in their output, etc...)?

If you submit a patch we'd be able to evaluate better (try it out ourselves), 
feel free.

 Switch from log4j to slf4j
 --

 Key: ZOOKEEPER-850
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-850
 Project: Zookeeper
  Issue Type: Improvement
  Components: java client
Reporter: Olaf Krische

 Hello,
 i would like to see slf4j integrated into the zookeeper instead of relying 
 explicitly on log4j.
 slf4j is an abstract logging framework. There are adapters from slf4j to many 
 logger implementations, one of them is log4j.
 The decision which log engine to use i dont like to make so early.
 This would help me to embed zookeeper in my own applications (which use a 
 different logger implemenation, but slf4j is the basis)
 What do you think?
 (as i can see, those slf4j request flood all other projects on apache as well 
 :-)
 Maybe for 3.4 or 4.0?
 I can offer a patchset, i have experience in such an migration already. :-)

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



[jira] Updated: (ZOOKEEPER-851) ZK lets any node to become an observer

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-851:
---

Fix Version/s: 3.4.0
   (was: 3.3.1)
Affects Version/s: 3.3.1
 Priority: Critical  (was: Major)
  Component/s: quorum
   server

This does sound like incorrect behavior to me. Henry what do you think? slating 
for 3.4.0

 ZK lets any node to become an observer
 --

 Key: ZOOKEEPER-851
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-851
 Project: Zookeeper
  Issue Type: Bug
  Components: quorum, server
Affects Versions: 3.3.1
Reporter: Vishal K
Priority: Critical
 Fix For: 3.4.0


 I had a 3 node cluster running. The zoo.cfg on each contained 3 entries as 
 show below:
 tickTime=2000
 dataDir=/var/zookeeper
 clientPort=2181
 initLimit=5
 syncLimit=2
 server.0=10.150.27.61:2888:3888
 server.1=10.150.27.62:2888:3888
 server.2=10.150.27.63:2888:3888
 I wanted to add another node to the cluster. In fourth node's zoo.cfg, I 
 created another entry for that node and started zk server. The zoo.cfg on the 
 first 3 nodes was left unchanged. The fourth node was able to join the 
 cluster even though the 3 nodes had no idea about the fourth node.
 zoo.cfg on fourth node:
 tickTime=2000
 dataDir=/var/zookeeper
 clientPort=2181
 initLimit=5
 syncLimit=2
 server.0=10.150.27.61:2888:3888
 server.1=10.150.27.62:2888:3888
 server.2=10.150.27.63:2888:3888
 server.3=10.17.117.71:2888:3888
 It looks like 10.17.117.71 is becoming an observer in this case. I was 
 expecting that the leader will reject 10.17.117.71.
 # telnet 10.17.117.71 2181
 Trying 10.17.117.71...
 Connected to 10.17.117.71.
 Escape character is '^]'.
 stat
 Zookeeper version: 3.3.0--1, built on 04/02/2010 22:40 GMT
 Clients:
  /10.17.117.71:37297[1](queued=0,recved=1,sent=0)
 Latency min/avg/max: 0/0/0
 Received: 3
 Sent: 2
 Outstanding: 0
 Zxid: 0x20065
 Mode: follower
 Node count: 288

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



[jira] Updated: (ZOOKEEPER-849) Provide Path class

2010-08-16 Thread Thomas Koch (JIRA)

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

Thomas Koch updated ZOOKEEPER-849:
--

Attachment: ZOOKEEPER-849.patch

This patch adds a Path class that will be needed in additional java client 
refactoring steps. I've noted, that the current validation code in PathUtils 
doesn't catch all illegal character ranges as indicated in 
http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkDataModel
For example \u007f, \u009F, \uXFFFE - \uX (where X is a digit 1 - E).
How should this be handled? Which characters are indeed illegal?

 Provide Path class
 --

 Key: ZOOKEEPER-849
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-849
 Project: Zookeeper
  Issue Type: Sub-task
Reporter: Thomas Koch
Assignee: Thomas Koch
 Attachments: ZOOKEEPER-849.patch




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



[jira] Assigned: (ZOOKEEPER-834) Allow ephemeral znodes to have children created only by the owner session.

2010-08-16 Thread Andrei Savu (JIRA)

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

Andrei Savu reassigned ZOOKEEPER-834:
-

Assignee: Andrei Savu

 Allow ephemeral znodes to have children created only by the owner session. 
 ---

 Key: ZOOKEEPER-834
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-834
 Project: Zookeeper
  Issue Type: New Feature
  Components: c client, java client, server
Reporter: Andrei Savu
Assignee: Andrei Savu
 Fix For: 3.4.0


 Ephemeral znodes are automatically removed when the client session is closed 
 or expires and this behavior makes them very useful when you want to publish 
 status information from active / connected clients. 
 But there is a catch. Right now ephemerals can't have children znodes and 
 because of that clients need to serialize status information as byte strings. 
 This serialization renders that information almost invisible to generic 
 zookeeper clients and hard / inefficient to update. 
 Most of the time the status information can be expressed as a bunch of (key, 
 value) pairs and we could easily store that using child znodes. Any ZooKeeper 
 client can read that info without the need to reverse the serialization 
 process and we can also easily update it. 
 I suggest that the server should allow the ephemeral znodes to have children 
 znodes. Each child should also be an ephemeral znode owned by the same 
 session - parent ephemeralOwner session.
 Mail Archive: 
 http://www.mail-archive.com/zookeeper-dev@hadoop.apache.org/msg09819.html
 Another discussion about the same topic:
 http://www.mail-archive.com/zookeeper-dev@hadoop.apache.org/msg08165.html

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



[jira] Commented: (ZOOKEEPER-792) zkpython memory leak

2010-08-16 Thread Henry Robinson (JIRA)

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

Henry Robinson commented on ZOOKEEPER-792:
--

Hi - 

Sorry for the slow response! I just took a look over the patch - good catches.

+1. I'll commit within the day. 

Henry

 zkpython memory leak
 

 Key: ZOOKEEPER-792
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-792
 Project: Zookeeper
  Issue Type: Bug
  Components: contrib-bindings
Affects Versions: 3.3.1
 Environment: vmware workstation - guest OS:Linux python:2.4.3
Reporter: Lei Zhang
Assignee: Lei Zhang
 Fix For: 3.3.2, 3.4.0

 Attachments: ZOOKEEPER-792.patch


 We recently upgraded zookeeper from 3.2.1 to 3.3.1, now we are seeing less 
 client deadlock on session expiration, which is a definite plus!
 Unfortunately we are seeing memory leak that requires our zk clients to be 
 restarted every half-day. Valgrind result:
 ==8804== 25 (12 direct, 13 indirect) bytes in 1 blocks are definitely lost in 
 loss record 255 of 670
 ==8804==at 0x4021C42: calloc (vg_replace_malloc.c:418)
 ==8804==by 0x5047B42: parse_acls (zookeeper.c:369)
 ==8804==by 0x5047EF6: pyzoo_create (zookeeper.c:1009)
 ==8804==by 0x40786CC: PyCFunction_Call (in /usr/lib/libpython2.4.so.1.0)
 ==8804==by 0x40B31DC: PyEval_EvalFrame (in /usr/lib/libpython2.4.so.1.0)
 ==8804==by 0x40B4485: PyEval_EvalCodeEx (in /usr/lib/libpython2.4.so.1.0)

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



[jira] Updated: (ZOOKEEPER-849) Provide Path class

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-849:
---

Fix Version/s: 3.4.0
  Component/s: java client

Marking for 3.4.0.

Are you planning to address this validation issue in the c client as well? 
(would be a good idea)

 Provide Path class
 --

 Key: ZOOKEEPER-849
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-849
 Project: Zookeeper
  Issue Type: Sub-task
  Components: java client
Reporter: Thomas Koch
Assignee: Thomas Koch
 Fix For: 3.4.0

 Attachments: ZOOKEEPER-849.patch




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



[jira] Commented: (ZOOKEEPER-733) use netty to handle client connections

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt commented on ZOOKEEPER-733:


Ben, did you make changes to allow the max worker limit to be configured? If so 
can you either update the patch or create a new jira with the changes?

 use netty to handle client connections
 --

 Key: ZOOKEEPER-733
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-733
 Project: Zookeeper
  Issue Type: Improvement
  Components: server
Reporter: Benjamin Reed
Assignee: Patrick Hunt
 Fix For: 3.4.0

 Attachments: accessive.jar, flowctl.zip, moved.zip, 
 QuorumTestFailed_sessionmoved_TRACE_LOG.txt.gz, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch


 we currently have our own asynchronous NIO socket engine to be able to handle 
 lots of clients with a single thread. over time the engine has become more 
 complicated. we would also like the engine to use multiple threads on 
 machines with lots of cores. plus, we would like to be able to support things 
 like SSL. if we switch to netty, we can simplify our code and get the 
 previously mentioned benefits.

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



[jira] Updated: (ZOOKEEPER-780) zkCli.sh generates a ArrayIndexOutOfBoundsException

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-780:
---

Status: Open  (was: Patch Available)

 zkCli.sh  generates a ArrayIndexOutOfBoundsException 
 -

 Key: ZOOKEEPER-780
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-780
 Project: Zookeeper
  Issue Type: Bug
  Components: scripts
Affects Versions: 3.3.1
 Environment: Linux Ubuntu running in VMPlayer on top of Windows XP
Reporter: Miguel Correia
Assignee: Andrei Savu
Priority: Minor
 Fix For: 3.4.0

 Attachments: ZOOKEEPER-780.patch, ZOOKEEPER-780.patch, 
 ZOOKEEPER-780.patch


 I'm starting to play with Zookeeper so I'm still running it in standalone 
 mode. This is not a big issue, but here it goes for the records. 
 I've run zkCli.sh to run some commands in the server. I created a znode 
 /groups. When I tried to create a znode client_1 inside /groups, I forgot to 
 include the data: an exception was generated and zkCli-sh crashed, instead of 
 just showing an error. I tried a few variations and it seems like the problem 
 is not including the data.
 A copy of the screen:
 [zk: localhost:2181(CONNECTED) 3] create /groups firstgroup
 Created /groups
 [zk: localhost:2181(CONNECTED) 4] create -e /groups/client_1
 Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 3
   at 
 org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:678)
   at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:581)
   at 
 org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:353)
   at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:311)
   at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:270)

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



[jira] Updated: (ZOOKEEPER-780) zkCli.sh generates a ArrayIndexOutOfBoundsException

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-780:
---

Status: Patch Available  (was: Open)

 zkCli.sh  generates a ArrayIndexOutOfBoundsException 
 -

 Key: ZOOKEEPER-780
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-780
 Project: Zookeeper
  Issue Type: Bug
  Components: scripts
Affects Versions: 3.3.1
 Environment: Linux Ubuntu running in VMPlayer on top of Windows XP
Reporter: Miguel Correia
Assignee: Andrei Savu
Priority: Minor
 Fix For: 3.4.0

 Attachments: ZOOKEEPER-780.patch, ZOOKEEPER-780.patch, 
 ZOOKEEPER-780.patch


 I'm starting to play with Zookeeper so I'm still running it in standalone 
 mode. This is not a big issue, but here it goes for the records. 
 I've run zkCli.sh to run some commands in the server. I created a znode 
 /groups. When I tried to create a znode client_1 inside /groups, I forgot to 
 include the data: an exception was generated and zkCli-sh crashed, instead of 
 just showing an error. I tried a few variations and it seems like the problem 
 is not including the data.
 A copy of the screen:
 [zk: localhost:2181(CONNECTED) 3] create /groups firstgroup
 Created /groups
 [zk: localhost:2181(CONNECTED) 4] create -e /groups/client_1
 Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 3
   at 
 org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:678)
   at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:581)
   at 
 org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:353)
   at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:311)
   at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:270)

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



[jira] Updated: (ZOOKEEPER-756) some cleanup and improvements for zooinspector

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-756:
---

Status: Open  (was: Patch Available)

Cancelling - fails to patch against current codebase.

Colin - could you resubmit? Would love to get this in. According to the console 
output it's failing to patch against the current trunk.


 some cleanup and improvements for zooinspector
 --

 Key: ZOOKEEPER-756
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-756
 Project: Zookeeper
  Issue Type: Improvement
  Components: contrib
Affects Versions: 3.3.0
Reporter: Thomas Koch
Assignee: Colin Goodheart-Smithe
 Fix For: 3.4.0

 Attachments: zooInspectorChanges.patch


 Copied from the already closed ZOOKEEPER-678:
 * specify the exact URL, where the icons are from. It's best to include the 
 link also in the NOTICE.txt file.
 It seems, that zooinspector finds it's icons only if the icons folder is in 
 the current path. But when I install zooinspector as part of the Zookeeper 
 Debian package, I want to be able to call it regardless of the current path.
 Could you use getRessources or something so that I can point to the icons 
 location from the wrapper shell script?
 Can I place the zooinspector config files in /etc/zookeeper/zooinspector/ ? 
 Could I give zooinspector a property to point to the config file location?
 There are several places, where viewers is missspelled as Veiwers. Please 
 do a case insensitive search for veiw to correct these. Even the config 
 file defaultNodeVeiwers.cfg is missspelled like this. This has the 
 potential to confuse the hell out of people when debugging something!

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



[jira] Commented: (ZOOKEEPER-733) use netty to handle client connections

2010-08-16 Thread Benjamin Reed (JIRA)

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

Benjamin Reed commented on ZOOKEEPER-733:
-

we should commit the patch as is. trying to add features to it and maintain the 
patch fresh is too unwieldy!

 use netty to handle client connections
 --

 Key: ZOOKEEPER-733
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-733
 Project: Zookeeper
  Issue Type: Improvement
  Components: server
Reporter: Benjamin Reed
Assignee: Patrick Hunt
 Fix For: 3.4.0

 Attachments: accessive.jar, flowctl.zip, moved.zip, 
 QuorumTestFailed_sessionmoved_TRACE_LOG.txt.gz, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch


 we currently have our own asynchronous NIO socket engine to be able to handle 
 lots of clients with a single thread. over time the engine has become more 
 complicated. we would also like the engine to use multiple threads on 
 machines with lots of cores. plus, we would like to be able to support things 
 like SSL. if we switch to netty, we can simplify our code and get the 
 previously mentioned benefits.

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



[jira] Commented: (ZOOKEEPER-702) GSoC 2010: Failure Detector Model

2010-08-16 Thread Abmar Barros (JIRA)

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

Abmar Barros commented on ZOOKEEPER-702:


I have updated the wiki page with the results of the experiments:
http://wiki.apache.org/hadoop/ZooKeeper/GSoCFailureDetector

 GSoC 2010: Failure Detector Model
 -

 Key: ZOOKEEPER-702
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-702
 Project: Zookeeper
  Issue Type: Wish
Reporter: Henry Robinson
Assignee: Abmar Barros
 Attachments: bertier-pseudo.txt, bertier-pseudo.txt, chen-pseudo.txt, 
 chen-pseudo.txt, phiaccrual-pseudo.txt, phiaccrual-pseudo.txt, 
 ZOOKEEPER-702-code.patch, ZOOKEEPER-702-doc.patch, ZOOKEEPER-702.patch, 
 ZOOKEEPER-702.patch, ZOOKEEPER-702.patch, ZOOKEEPER-702.patch, 
 ZOOKEEPER-702.patch, ZOOKEEPER-702.patch, ZOOKEEPER-702.patch, 
 ZOOKEEPER-702.patch, ZOOKEEPER-702.patch, ZOOKEEPER-702.patch


 Failure Detector Module
 Possible Mentor
 Henry Robinson (henry at apache dot org)
 Requirements
 Java, some distributed systems knowledge, comfort implementing distributed 
 systems protocols
 Description
 ZooKeeper servers detects the failure of other servers and clients by 
 counting the number of 'ticks' for which it doesn't get a heartbeat from 
 other machines. This is the 'timeout' method of failure detection and works 
 very well; however it is possible that it is too aggressive and not easily 
 tuned for some more unusual ZooKeeper installations (such as in a wide-area 
 network, or even in a mobile ad-hoc network).
 This project would abstract the notion of failure detection to a dedicated 
 Java module, and implement several failure detectors to compare and contrast 
 their appropriateness for ZooKeeper. For example, Apache Cassandra uses a 
 phi-accrual failure detector (http://ddsg.jaist.ac.jp/pub/HDY+04.pdf) which 
 is much more tunable and has some very interesting properties. This is a 
 great project if you are interested in distributed algorithms, or want to 
 help re-factor some of ZooKeeper's internal 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-733) use netty to handle client connections

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt commented on ZOOKEEPER-733:


That's fine, but in that case create a JIRA to track (if you have a patch all 
the better), so we don't lose the thought. thanks.


 use netty to handle client connections
 --

 Key: ZOOKEEPER-733
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-733
 Project: Zookeeper
  Issue Type: Improvement
  Components: server
Reporter: Benjamin Reed
Assignee: Patrick Hunt
 Fix For: 3.4.0

 Attachments: accessive.jar, flowctl.zip, moved.zip, 
 QuorumTestFailed_sessionmoved_TRACE_LOG.txt.gz, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, ZOOKEEPER-733.patch, 
 ZOOKEEPER-733.patch, ZOOKEEPER-733.patch


 we currently have our own asynchronous NIO socket engine to be able to handle 
 lots of clients with a single thread. over time the engine has become more 
 complicated. we would also like the engine to use multiple threads on 
 machines with lots of cores. plus, we would like to be able to support things 
 like SSL. if we switch to netty, we can simplify our code and get the 
 previously mentioned benefits.

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



[jira] Commented: (ZOOKEEPER-822) Leader election taking a long time to complete

2010-08-16 Thread Vishal K (JIRA)

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

Vishal K commented on ZOOKEEPER-822:


Hi Ivan,

Can you describe me your setup?

My setup info:
- 3 ESX boxes
- 1 SLES 11 VMs on each
- Cluster of 3 nodes

I hit this problem consistently after rebooting the leader.

Thanks.
-Vishal


 Leader election taking a long time  to complete
 ---

 Key: ZOOKEEPER-822
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-822
 Project: Zookeeper
  Issue Type: Bug
  Components: quorum
Affects Versions: 3.3.0
Reporter: Vishal K
Priority: Blocker
 Attachments: 822.tar.gz, test_zookeeper_1.log, test_zookeeper_2.log, 
 zk_leader_election.tar.gz


 Created a 3 node cluster.
 1 Fail the ZK leader
 2. Let leader election finish. Restart the leader and let it join the 
 3. Repeat 
 After a few rounds leader election takes anywhere 25- 60 seconds to finish. 
 Note- we didn't have any ZK clients and no new znodes were created.
 zoo.cfg is shown below:
 #Mon Jul 19 12:15:10 UTC 2010
 server.1=192.168.4.12\:2888\:3888
 server.0=192.168.4.11\:2888\:3888
 clientPort=2181
 dataDir=/var/zookeeper
 syncLimit=2
 server.2=192.168.4.13\:2888\:3888
 initLimit=5
 tickTime=2000
 I have attached logs from two nodes that took a long time to form the cluster 
 after failing the leader. The leader was down anyways so logs from that node 
 shouldn't matter.
 Look for START HERE. Logs after that point should be of our interest.

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



[jira] Updated: (ZOOKEEPER-809) Improved REST Interface

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-809:
---

Fix Version/s: 3.4.0

This looks good, a few issues to address:

1) add license to HTTPBasicAuth.java

2) replace tabs with spaces for indentation (check the resulting patch file for 
any tabs)

3) the diff is missing binaries for:

:00 100644 000... 13e5aab... A  src/contrib/rest/conf/keys/rest.cer
:00 100644 000... 539e8be... A  src/contrib/rest/conf/keys/rest.jks



 Improved REST Interface
 ---

 Key: ZOOKEEPER-809
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-809
 Project: Zookeeper
  Issue Type: Improvement
  Components: contrib
Reporter: Andrei Savu
Assignee: Andrei Savu
 Fix For: 3.4.0

 Attachments: SPEC.txt, SPEC.txt, ZOOKEEPER-809.patch, 
 ZOOKEEPER-809.patch, ZOOKEEPER-809.patch, ZOOKEEPER-809.patch


 I would like to extend the existing REST Interface to also support:
 * configuration
 * ephemeral znodes
 * watches - PubSubHubbub 
 * ACLs 
 * basic authentication
 I want to do this because when building web applications that talks directly 
 to ZooKeeper a REST API it's a lot easier to use (there is no protocol 
 mismatch) than an API that uses persistent connections. I plan to use the 
 improved version to build a web-based administrative interface. 

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



[jira] Updated: (ZOOKEEPER-809) Improved REST Interface

2010-08-16 Thread Andrei Savu (JIRA)

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

Andrei Savu updated ZOOKEEPER-809:
--

Attachment: ZOOKEEPER-809.patch
keys.tar.gz

I've added the license header to {{HTTPBasicAuth.java}}, removed all the tabs 
and added dummy self-signed keys to {{keys.tar.gz}} ( should be extracted to 
{{conf/keys}} folder ). 

Thanks Patrick for reviewing. 

 Improved REST Interface
 ---

 Key: ZOOKEEPER-809
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-809
 Project: Zookeeper
  Issue Type: Improvement
  Components: contrib
Reporter: Andrei Savu
Assignee: Andrei Savu
 Fix For: 3.4.0

 Attachments: keys.tar.gz, SPEC.txt, SPEC.txt, ZOOKEEPER-809.patch, 
 ZOOKEEPER-809.patch, ZOOKEEPER-809.patch, ZOOKEEPER-809.patch, 
 ZOOKEEPER-809.patch


 I would like to extend the existing REST Interface to also support:
 * configuration
 * ephemeral znodes
 * watches - PubSubHubbub 
 * ACLs 
 * basic authentication
 I want to do this because when building web applications that talks directly 
 to ZooKeeper a REST API it's a lot easier to use (there is no protocol 
 mismatch) than an API that uses persistent connections. I plan to use the 
 improved version to build a web-based administrative interface. 

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



[jira] Commented: (ZOOKEEPER-808) Web-based Administrative Interface

2010-08-16 Thread Patrick Hunt (JIRA)

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

Patrick Hunt commented on ZOOKEEPER-808:


lgtm, seems like we should get apps/zkui into zk's src/contrib along with a 
README on how to integrate into hue. What do you think? Can you create a patch 
for this?

Also, be sure to add apache license headers to all the files that you created, 
I believe the hue license headers are fine (state that they are apache 
license), but we should be sure to have apache headers on any new files. this 
includes the mako files (I assume that you can add as comment?)

 Web-based Administrative Interface
 --

 Key: ZOOKEEPER-808
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-808
 Project: Zookeeper
  Issue Type: New Feature
  Components: contrib
Reporter: Andrei Savu
Assignee: Andrei Savu

 Implement a web-based administrative interface that should allow the user to 
 perform all the tasks that can be done using the interactive shell (zkCli.sh) 
 from a browser. It should also display cluster and individual server info 
 extracted using the 4letter word commands. 
 I'm going to build starting from the 
 http://github.com/phunt/zookeeper_dashboard implemented by Patrick Hunt. 

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



[jira] Commented: (ZOOKEEPER-808) Web-based Administrative Interface

2010-08-16 Thread Andrei Savu (JIRA)

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

Andrei Savu commented on ZOOKEEPER-808:
---

Yes. That's exactly what I'm doing now :) I will upload the patch / archive in 
a few minutes. 

 Web-based Administrative Interface
 --

 Key: ZOOKEEPER-808
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-808
 Project: Zookeeper
  Issue Type: New Feature
  Components: contrib
Reporter: Andrei Savu
Assignee: Andrei Savu

 Implement a web-based administrative interface that should allow the user to 
 perform all the tasks that can be done using the interactive shell (zkCli.sh) 
 from a browser. It should also display cluster and individual server info 
 extracted using the 4letter word commands. 
 I'm going to build starting from the 
 http://github.com/phunt/zookeeper_dashboard implemented by Patrick Hunt. 

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