[jira] Updated: (ZOOKEEPER-729) Recursively delete a znode - zkCli.sh rmr /node

2010-04-15 Thread Henry Robinson (JIRA)

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

Henry Robinson updated ZOOKEEPER-729:
-

Status: Resolved  (was: Patch Available)
Resolution: Fixed

I just committed this (had to move the test file into java/, but otherwise 
committed as submitted) - thanks Kay!

> Recursively delete a znode  - zkCli.sh rmr /node
> 
>
> Key: ZOOKEEPER-729
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-729
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: java client
>Reporter: Kay Kay
>Assignee: Kay Kay
> Fix For: 3.4.0
>
> Attachments: ZOOKEEPER-729.patch, ZOOKEEPER-729.patch, 
> ZOOKEEPER-729.patch, ZOOKEEPER-729.patch, ZOOKEEPER-729.patch
>
>
> Recursively delete a given znode in zookeeper, from the command-line. 
> New operation "rmr" added to zkclient. 
> $ ./zkCli.sh rmr /node 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ZOOKEEPER-729) Recursively delete a znode - zkCli.sh rmr /node

2010-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857268#action_12857268
 ] 

Hudson commented on ZOOKEEPER-729:
--

Integrated in ZooKeeper-trunk #794 (See 
[http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/794/])
ZOOKEEPER-729. Java client API to recursively delete a subtree. (Kay Kay 
via henry)


> Recursively delete a znode  - zkCli.sh rmr /node
> 
>
> Key: ZOOKEEPER-729
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-729
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: java client
>Reporter: Kay Kay
>Assignee: Kay Kay
> Fix For: 3.4.0
>
> Attachments: ZOOKEEPER-729.patch, ZOOKEEPER-729.patch, 
> ZOOKEEPER-729.patch, ZOOKEEPER-729.patch, ZOOKEEPER-729.patch
>
>
> Recursively delete a given znode in zookeeper, from the command-line. 
> New operation "rmr" added to zkclient. 
> $ ./zkCli.sh rmr /node 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ZOOKEEPER-729) Recursively delete a znode - zkCli.sh rmr /node

2010-04-15 Thread Kay Kay (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857289#action_12857289
 ] 

Kay Kay commented on ZOOKEEPER-729:
---

Thanks Henry for committing this / Patrick for helping review this. 

> Recursively delete a znode  - zkCli.sh rmr /node
> 
>
> Key: ZOOKEEPER-729
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-729
> Project: Zookeeper
>  Issue Type: New Feature
>  Components: java client
>Reporter: Kay Kay
>Assignee: Kay Kay
> Fix For: 3.4.0
>
> Attachments: ZOOKEEPER-729.patch, ZOOKEEPER-729.patch, 
> ZOOKEEPER-729.patch, ZOOKEEPER-729.patch, ZOOKEEPER-729.patch
>
>
> Recursively delete a given znode in zookeeper, from the command-line. 
> New operation "rmr" added to zkclient. 
> $ ./zkCli.sh rmr /node 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Josh Fraser (JIRA)
Deallocatng None on writes
--

 Key: ZOOKEEPER-742
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
 Project: Zookeeper
  Issue Type: Bug
  Components: c client, contrib, contrib-bindings
Affects Versions: 3.3.0, 3.2.2
 Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
(python 2.5.1)
Reporter: Josh Fraser


On write operations, getting:

Fatal Python error: deallocating None
Aborted

This error happens on write operations only.  Here's the backtrace:

Fatal Python error: deallocating None

Program received signal SIGABRT, Aborted.
0x00383fc30215 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00383fc30215 in raise () from /lib64/libc.so.6
#1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
#2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
#3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
/usr/lib64/libpython2.4.so.1.0
#4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
/usr/lib64/libpython2.4.so.1.0
#5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
/usr/lib64/libpython2.4.so.1.0
#6  0x2adbd0bcc032 in PyEval_EvalCode () from /usr/lib64/libpython2.4.so.1.0
#7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
#8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
/usr/lib64/libpython2.4.so.1.0
#9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
#10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
#11 0x00400629 in _start ()


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Josh Fraser (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857608#action_12857608
 ] 

Josh Fraser commented on ZOOKEEPER-742:
---

Here's an strace of what's happening when we get the error:

pid  5468] futex(0x2c00f7ac, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 
0x2c00f7d8, 2) = 1
[pid  5467] <... futex resumed> )   = 0
[pid  5468] poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, 3332 

[pid  5467] futex(0x2c00f7d8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  5467] write(1, "('/audubon/group/datacenter/sjc1"..., 
68('/audubon/group/datacenter/sjc1/members/sjc1a250.twitter.com', '')
) = 68
[pid  5467] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
[pid  5467] write(4, "\0", 1)   = 1
[pid  5468] <... poll resumed> )= 1 ([{fd=3, revents=POLLIN}])
[pid  5468] read(3,  
[pid  5467] futex(0x2c00f7ac, FUTEX_WAIT_PRIVATE, 1, NULL 
[pid  5468] <... read resumed> "\0", 128) = 1
[pid  5468] poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN|POLLOUT}], 2, 
2331) = 1 ([{fd=5, revents=POLLOUT}])
[pid  5468] sendto(5, "\0\0\0H", 4, 0, NULL, 0) = 4
[pid  5468] sendto(5, "K\307\272\300\0\0\0\3\0\0\0;/audubon/group/datac"..., 
72, 0, NULL, 0) = 72
[pid  5468] poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, ) = 1 
([{fd=5, revents=POLLIN}])
[pid  5468] recvfrom(5, "\0\0\0\20", 4, 0, NULL, NULL) = 4
[pid  5468] recvfrom(5, "K\307\272\300\0\0\0\17\0\2\244`\377\377\377\233", 16, 
0, NULL, NULL) = 16
[pid  5468] futex(0x2c00f7ac, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 
0x2c00f7d8, 2) = 1
[pid  5467] <... futex resumed> )   = 0
[pid  5468] poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2,  

[pid  5467] futex(0x2c00f7d8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  5467] write(2, "Fatal Python error: deallocating"..., 38Fatal Python 
error: deallocating None
) = 38
[pid  5467] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
[pid  5467] tgkill(5467, 5467, SIGABRT) = 0
[pid  5467] --- SIGABRT (Aborted) @ 0 (0) ---
upeek: ptrace(PTRACE_PEEKUSER,5468,120,0): No such process
Process 5468 detached
[pid  5469] +++ killed by SIGABRT +++


> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Henry Robinson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857628#action_12857628
 ] 

Henry Robinson commented on ZOOKEEPER-742:
--

Thanks Josh - can you share the portion of your script that is causing the 
problem?



> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




.NET client

2010-04-15 Thread Eric Hauser
Hi,

I've ported the Java ZK client to .NET.  It's available for forking at
http://github.com/ewhauser/zookeeper/.  It is still in very early stages,
but all of the client tests that I have ported complete successfully - both
normal calls and watches are working successfully.  Some things to keep in
mind:

- It's not actively being used at the moment
- I have not had any chance to do any performance testing
- The API will definitely be changing.  I've ported watches over as is in
order to get everything working, but I'll be changing that to use events
instead to make it more .NET-like.
- There are not any asynchronous methods on the ZK client API -- async
method calls are easy to do .NET.  May add a wrapper for it at some point.

If there is any interest in having any part of my work go back into trunk,
I'm happy to sign the ASF release.  In particular, it would be nice if the
C# support I added to Jute made it back into the core code base.


[jira] Commented: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Josh Fraser (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857631#action_12857631
 ] 

Josh Fraser commented on ZOOKEEPER-742:
---

Here's the script it its entirety.  I tried adding the sleep to see if it 
mattered how quickly the writes were occurring.

#!/usr/bin/env python

from zktools.commands import Commands
import time

cmd = Commands()

for i in cmd.listNode('/audubon/group'):
  group_type = ''
  group_members = []
  group_name = i.split('/')[-1]
  try:
group_type = cmd.catNode('%s/type' % i)[0]
group_members = [ h.split('/')[-1] for h in cmd.listNode('%s/members' % i) ]
for member in group_members:
  value = cmd.setNode('/audubon/group/%s/%s/members/%s' % (group_type, 
group_name, member), '')
  print value
  time.sleep(1)
  except:
print "group name: %s isn't happy" % group_name


> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Josh Fraser (JIRA)

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

Josh Fraser updated ZOOKEEPER-742:
--

Attachment: foo.p

attached the file since pasting lost the formatting

> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
> Attachments: foo.p
>
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Henry Robinson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857638#action_12857638
 ] 

Henry Robinson commented on ZOOKEEPER-742:
--

Thanks very much for this - any chance you can share Commands as well, so that 
I can see the actual zookeeper API calls that are being made? Let me know if 
you're not comfortable posting it publicly. 

> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
> Attachments: foo.p
>
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Josh Fraser (JIRA)

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

Josh Fraser updated ZOOKEEPER-742:
--

Attachment: commands.py

Attached commands.py -- nothing private in the file.

> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
> Attachments: commands.py, foo.p
>
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Henry Robinson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857667#action_12857667
 ] 

Henry Robinson commented on ZOOKEEPER-742:
--

The bad news is I can't recreate the error, but the good news is that there are 
only four call sites where this could be happening (the error is to decrease a 
reference to Py_None, which is a bad idea). 

I can have a patch for you to try up here shortly.

> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
> Attachments: commands.py, foo.p
>
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Henry Robinson (JIRA)

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

Henry Robinson updated ZOOKEEPER-742:
-

Attachment: ZOOKEEPER-742.patch

Josh - are you able to apply this patch and try it out? It's not ready to be 
committed, but it adds a bit of defensive programming that should hopefully fix 
the error you're seeing. 

> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
> Attachments: commands.py, foo.p, ZOOKEEPER-742.patch
>
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Assigned: (ZOOKEEPER-742) Deallocatng None on writes

2010-04-15 Thread Henry Robinson (JIRA)

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

Henry Robinson reassigned ZOOKEEPER-742:


Assignee: Henry Robinson

> Deallocatng None on writes
> --
>
> Key: ZOOKEEPER-742
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-742
> Project: Zookeeper
>  Issue Type: Bug
>  Components: c client, contrib, contrib-bindings
>Affects Versions: 3.2.2, 3.3.0
> Environment: Redhat Enterprise 5.4 (python 2.4.3), Mac OS X 10.5.8 
> (python 2.5.1)
>Reporter: Josh Fraser
>Assignee: Henry Robinson
> Attachments: commands.py, foo.p, ZOOKEEPER-742.patch
>
>
> On write operations, getting:
> Fatal Python error: deallocating None
> Aborted
> This error happens on write operations only.  Here's the backtrace:
> Fatal Python error: deallocating None
> Program received signal SIGABRT, Aborted.
> 0x00383fc30215 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00383fc30215 in raise () from /lib64/libc.so.6
> #1  0x00383fc31cc0 in abort () from /lib64/libc.so.6
> #2  0x2adbd0be8189 in Py_FatalError () from /usr/lib64/libpython2.4.so.1.0
> #3  0x2adbd0bc7493 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #4  0x2adbd0bcab66 in PyEval_EvalFrame () from 
> /usr/lib64/libpython2.4.so.1.0
> #5  0x2adbd0bcbfe5 in PyEval_EvalCodeEx () from 
> /usr/lib64/libpython2.4.so.1.0
> #6  0x2adbd0bcc032 in PyEval_EvalCode () from 
> /usr/lib64/libpython2.4.so.1.0
> #7  0x2adbd0be8729 in ?? () from /usr/lib64/libpython2.4.so.1.0
> #8  0x2adbd0be9bd8 in PyRun_SimpleFileExFlags () from 
> /usr/lib64/libpython2.4.so.1.0
> #9  0x2adbd0bf000d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
> #10 0x00383fc1d974 in __libc_start_main () from /lib64/libc.so.6
> #11 0x00400629 in _start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira