[jira] Updated: (ZOOKEEPER-119) Reserve ".zookeeper" node for server use.

2008-08-21 Thread Jakob Homan (JIRA)

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

Jakob Homan updated ZOOKEEPER-119:
--

Attachment: ZOOKEEPER-119.patch

D'oh.  Slight error in last patch.  Ran test twice.  Fixed.

> Reserve ".zookeeper" node for server use.
> -
>
> Key: ZOOKEEPER-119
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-119
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: server
>Reporter: Patrick Hunt
>Assignee: Jakob Homan
> Attachments: ZOOKEEPER-119.patch
>
>
> The server should not allow clients to create .zookeeper nodes in the node 
> hierarchy. These nodes should be reserved for zk future use, some ideas:
> * /.zookeeper/proc
> * /.zookeeper/stats
> * /.zookeeper/...
> * /.../.zookeeper/... (disallow both at root as well as child nodes)

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



[jira] Updated: (ZOOKEEPER-119) Reserve ".zookeeper" node for server use.

2008-08-21 Thread Jakob Homan (JIRA)

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

Jakob Homan updated ZOOKEEPER-119:
--

Attachment: (was: ZOOKEEPER-119.patch)

> Reserve ".zookeeper" node for server use.
> -
>
> Key: ZOOKEEPER-119
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-119
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: server
>Reporter: Patrick Hunt
>Assignee: Jakob Homan
> Attachments: ZOOKEEPER-119.patch
>
>
> The server should not allow clients to create .zookeeper nodes in the node 
> hierarchy. These nodes should be reserved for zk future use, some ideas:
> * /.zookeeper/proc
> * /.zookeeper/stats
> * /.zookeeper/...
> * /.../.zookeeper/... (disallow both at root as well as child nodes)

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



[jira] Updated: (ZOOKEEPER-119) Reserve ".zookeeper" node for server use.

2008-08-21 Thread Jakob Homan (JIRA)

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

Jakob Homan updated ZOOKEEPER-119:
--

Assignee: Jakob Homan  (was: Benjamin Reed)
  Status: Patch Available  (was: Open)

> Reserve ".zookeeper" node for server use.
> -
>
> Key: ZOOKEEPER-119
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-119
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: server
>Reporter: Patrick Hunt
>Assignee: Jakob Homan
> Attachments: ZOOKEEPER-119.patch
>
>
> The server should not allow clients to create .zookeeper nodes in the node 
> hierarchy. These nodes should be reserved for zk future use, some ideas:
> * /.zookeeper/proc
> * /.zookeeper/stats
> * /.zookeeper/...
> * /.../.zookeeper/... (disallow both at root as well as child nodes)

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



[jira] Updated: (ZOOKEEPER-119) Reserve ".zookeeper" node for server use.

2008-08-21 Thread Jakob Homan (JIRA)

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

Jakob Homan updated ZOOKEEPER-119:
--

Attachment: ZOOKEEPER-119.patch

I went ahead and wrote up a patch to implement this functionality.  That way 
this behavior is inserted into the system as soon as possible and lessens the 
(already very small) chance that new code will be written that might conflict 
with it.

The patch:
   * Changes the create method to throw a BadArgumentsException when attempting 
to create a .zookeeper node, either in the root or nested
   * Inserts language into the create method javadoc explaining this znode name 
is reserved for future use by the server
   * Adds to the client unit tests to make sure .zookeeper nodes can't be 
created, but other, similar-sounding nodes, can be.

Hope this is helpful.

> Reserve ".zookeeper" node for server use.
> -
>
> Key: ZOOKEEPER-119
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-119
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: server
>Reporter: Patrick Hunt
>Assignee: Benjamin Reed
> Attachments: ZOOKEEPER-119.patch
>
>
> The server should not allow clients to create .zookeeper nodes in the node 
> hierarchy. These nodes should be reserved for zk future use, some ideas:
> * /.zookeeper/proc
> * /.zookeeper/stats
> * /.zookeeper/...
> * /.../.zookeeper/... (disallow both at root as well as child nodes)

-- 
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 #60

2008-08-21 Thread Apache Hudson Server
See http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/60/changes

--
[...truncated 7731 lines...]
[junit] 2008-08-21 13:13:18,935 - INFO  [SendThread:[EMAIL PROTECTED] - 
Priming connection to java.nio.channels.SocketChannel[connected 
local=/127.0.0.1:52395 remote=/127.0.0.1:33221]
[junit] 2008-08-21 13:13:18,936 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Connected to /127.0.0.1:52395 lastZxid 0
[junit] 2008-08-21 13:13:18,936 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Creating new session 0x11be565cb950001
[junit] 2008-08-21 13:13:19,353 - WARN  [SyncThread:[EMAIL PROTECTED] - 
Finished init of 0x11be565cb950001: true
[junit] 2008-08-21 13:13:19,688 - INFO  [SendThread:[EMAIL PROTECTED] - 
Attempting connection to server /127.0.0.1:33221
[junit] 2008-08-21 13:13:19,688 - INFO  [SendThread:[EMAIL PROTECTED] - 
Priming connection to java.nio.channels.SocketChannel[connected 
local=/127.0.0.1:52396 remote=/127.0.0.1:33221]
[junit] 2008-08-21 13:13:19,690 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Connected to /127.0.0.1:52396 lastZxid -1
[junit] 2008-08-21 13:13:19,692 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Finished init of 0x11be565c5af0001: false
[junit] 2008-08-21 13:13:19,692 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Renewing session 0x11be565c5af0001
[junit] 2008-08-21 13:13:19,693 - WARN  [SendThread:[EMAIL PROTECTED] - 
Closing session 0x11be565c5af0001
[junit] java.io.IOException: Session Expired
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.readConnectResult(ClientCnxn.java:415)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:500)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:719)
[junit] 2008-08-21 13:13:19,878 - INFO  [SendThread:[EMAIL PROTECTED] - 
Attempting connection to server /127.0.0.1:33221
[junit] 2008-08-21 13:13:19,878 - INFO  [SendThread:[EMAIL PROTECTED] - 
Priming connection to java.nio.channels.SocketChannel[connected 
local=/127.0.0.1:52397 remote=/127.0.0.1:33221]
[junit] 2008-08-21 13:13:19,879 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Connected to /127.0.0.1:52397 lastZxid 10
[junit] 2008-08-21 13:13:19,880 - ERROR [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Client has seen zxid 0xa our last zxid is 0x4
[junit] 2008-08-21 13:13:19,880 - WARN  [SendThread:[EMAIL PROTECTED] - 
Closing session 0x11be565c5af
[junit] java.io.IOException: Read error rc = -1 
java.nio.DirectByteBuffer[pos=0 lim=4 cap=4]
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:492)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:719)
[junit] 2008-08-21 13:13:20,068 - INFO  [SendThread:[EMAIL PROTECTED] - 
Attempting connection to server /127.0.0.1:33221
[junit] 2008-08-21 13:13:20,068 - INFO  [SendThread:[EMAIL PROTECTED] - 
Priming connection to java.nio.channels.SocketChannel[connected 
local=/127.0.0.1:52398 remote=/127.0.0.1:33221]
[junit] 2008-08-21 13:13:20,070 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Connected to /127.0.0.1:52398 lastZxid 8
[junit] 2008-08-21 13:13:20,070 - ERROR [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Client has seen zxid 0x8 our last zxid is 0x5
[junit] 2008-08-21 13:13:20,070 - WARN  [SendThread:[EMAIL PROTECTED] - 
Closing session 0x11be565c9c4
[junit] java.io.IOException: Read error rc = -1 
java.nio.DirectByteBuffer[pos=0 lim=4 cap=4]
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:492)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:719)
[junit] 2008-08-21 13:13:20,158 - INFO  [SendThread:[EMAIL PROTECTED] - 
Attempting connection to server /127.0.0.1:33221
[junit] 2008-08-21 13:13:20,159 - INFO  [SendThread:[EMAIL PROTECTED] - 
Priming connection to java.nio.channels.SocketChannel[connected 
local=/127.0.0.1:52399 remote=/127.0.0.1:33221]
[junit] 2008-08-21 13:13:20,160 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Connected to /127.0.0.1:52399 lastZxid -1
[junit] 2008-08-21 13:13:20,160 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Finished init of 0x11be565c9c40001: false
[junit] 2008-08-21 13:13:20,160 - WARN  [NIOServerCxn.Factory:[EMAIL 
PROTECTED] - Renewing session 0x11be565c9c40001
[junit] 2008-08-21 13:13:20,161 - WARN  [SendThread:[EMAIL PROTECTED] - 
Closing session 0x11be565c9c40001
[junit] java.io.IOException: Session Expired
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.readConnectResult(ClientCnxn.java:415)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:500)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:719)
[junit] 2008-08-21 13:13:20,958 - INFO  [main:[EMAIL PROTECTED] - Closing 
session: 0x11be