[ZODB-Dev] ClientDisconnected error on windows

JohnD.Heintz JohnD.Heintz
Tue, 7 Aug 2001 16:35:53 -0500


Didn't work for us.  Also, on linux we get really long pauses where there=
 is=20
no CPU being used - I can only presume python is blocking on the socket.

What can I do to capture more detail?  We should be able to package up a=20
reproducible test case - is that the best thing?

What I can package is our use of ZODB for omniORB.  It would require you =
to=20
have omniORBpy installed but then it should be trivial to run our code.  =
Do=20
you want this?

The only other thing I can mention right now is that we are getting these=
=20
errors during stress testing - multiple threads hitting our server full o=
ut.

John

on Windows with the following failures:
Traceback (most recent call last):
  File "c:\users\brandon\bonnell\thor\thor_corba\thorServants.py", line 1=
321,=20
in write
    (offset, data))
  File "c:\users\brandon\bonnell\thor\ZODBCorbaFramework.py", line 281, i=
n=20
_tryDomainCommit
    return self._tryCommitFunction(self.__functor, *args)
  File "c:\users\brandon\bonnell\thor\ZODBCorbaFramework.py", line 236, i=
n=20
_tryCommitFunction
    get_transaction().commit()
  File "c:\users\brandon\bonnell\thor\TransactionManagement.py", line 72,=
 in=20
commit
    ZODB.Transaction.Transaction.commit(self, subtransaction)
  File "c:\programs\zodb\zodb\Transaction.py", line 301, in commit
    j.tpc_begin(self)
  File "c:\programs\zodb\zodb\Connection.py", line 633, in tpc_begin
    self._storage.tpc_begin(transaction)
  File "..\win32\ZEO\ClientStorage.py", line 478, in tpc_begin
ZEO.ClientStorage.ClientDisconnected: This action is temporarily unavaila=
ble.
omniORB: Caught an unexpected Python exception during up-call.
Traceback (most recent call last):
  File "c:\users\brandon\bonnell\thor\thor_corba\thorServants.py", line 1=
247,=20
in createBranch
    (name, desc))
  File "c:\users\brandon\bonnell\thor\ZODBCorbaFramework.py", line 281, i=
n=20
_tryDomainCommit
    return self._tryCommitFunction(self.__functor, *args)
  File "c:\users\brandon\bonnell\thor\ZODBCorbaFramework.py", line 236, i=
n=20
_tryCommitFunction
    get_transaction().commit()
  File "c:\users\brandon\bonnell\thor\TransactionManagement.py", line 72,=
 in=20
commit
    ZODB.Transaction.Transaction.commit(self, subtransaction)
  File "c:\programs\zodb\zodb\Transaction.py", line 312, in commit
    j.commit_sub(self)
  File "c:\programs\zodb\zodb\Connection.py", line 446, in commit_sub
    tmp.tpc_begin(t)
  File "..\win32\ZEO\ClientStorage.py", line 482, in tpc_begin
thread.error: release unlocked lock

and on Linux with the following:
Logging [ZEO]: uncaptured python exception, closing=20
channel <asyncRPC connected at 8241d30> (socket.error:(11, 'Resource=20
temporarily unavailable')=20
[/usr/local/stow/python21_debug/lib/python2.1/asyncore.py|poll|95]=20
[/usr/local/stow/python21_debug/lib/python2.1/asyncore.py|handle_read_eve=
nt|383]=20
[/home/jheintz/lib/python/ZEO/smac.py|handle_read|119]=20
[/usr/local/stow/python21_debug/lib/python2.1/asyncore.py|recv|349])
(thread 10250 time 997219604.61) [ClientStorage]: Disconnected from stora=
ge
omniORB: Caught an unexpected Python exception during up-call.
Traceback (most recent call last):
  File "/home/jheintz/src/bonnell/thor/thor_corba/thorServants.py", line=20
1321, in write
    (offset, data))
  File "/home/jheintz/src/bonnell/thor/ZODBCorbaFramework.py", line 281, =
in=20
_tryDomainCommit
    return self._tryCommitFunction(self.__functor, *args)
  File "/home/jheintz/src/bonnell/thor/ZODBCorbaFramework.py", line 236, =
in=20
_tryCommitFunction
    get_transaction().commit()
  File "/home/jheintz/src/bonnell/thor/TransactionManagement.py", line 72=
, in=20
commit
    ZODB.Transaction.Transaction.commit(self, subtransaction)
  File "/home/jheintz/lib/python/ZODB/Transaction.py", line 319, in commi=
t
    else: jar(self) # last chance to bail
  File "/home/jheintz/lib/python/ZODB/Connection.py", line 642, in tpc_vo=
te
    s =3D vote(transaction)
  File "/home/jheintz/lib/python/ZEO/ClientStorage.py", line 423, in tpc_=
vote
    self._call('vote', self._serial)
  File "/home/jheintz/lib/python/ZEO/zrpc.py", line 225, in __call__
    if type(r) is TupleType: raise r[0], r[1]
socket.error: (11, 'Resource temporarily unavailable')
omniORB: Caught an unexpected Python exception during up-call.
Traceback (most recent call last):
  File "/home/jheintz/src/bonnell/thor/thor_corba/thorServants.py", line =
721,=20
in getId
    return self._tryDomainCommit( "getId", () )
  File "/home/jheintz/src/bonnell/thor/ZODBCorbaFramework.py", line 281, =
in=20
_tryDomainCommit
    return self._tryCommitFunction(self.__functor, *args)
  File "/home/jheintz/src/bonnell/thor/ZODBCorbaFramework.py", line 236, =
in=20
_tryCommitFunction
    get_transaction().commit()
  File "/home/jheintz/src/bonnell/thor/TransactionManagement.py", line 72=
, in=20
commit
    ZODB.Transaction.Transaction.commit(self, subtransaction)
  File "/home/jheintz/lib/python/ZODB/Transaction.py", line 312, in commi=
t
    j.commit_sub(self)
  File "/home/jheintz/lib/python/ZODB/Connection.py", line 446, in commit=
_sub
    tmp.tpc_begin(t)
  File "/home/jheintz/lib/python/ZEO/ClientStorage.py", line 478, in tpc_=
begin
    raise ClientDisconnected(
ZEO.ClientStorage.ClientDisconnected: This action is temporarily=20
unavailable.<p>



On Tuesday 07 August 2001 12:07, Jeremy Hylton wrote:
> There are instructions at:
> http://dev.zope.org/CVS/ReadOnlyAccess
>
> Here is a session trace:
>
> slothrop:/tmp> cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository l=
ogin
> (Logging in to anonymous@cvs.zope.org)
> CVS password: [just press return]
>
> slothrop:/tmp> cvs -z7 -d :pserver:anonymous@cvs.zope.org:/cvs-reposito=
ry
> checkout -r zeo-1_0-branch ZEO cvs server: Updating ZEO
> U ZEO/CHANGES.txt
> U ZEO/README
> cvs server: Updating ZEO/ZEO
> U ZEO/ZEO/ClientCache.py
> U ZEO/ZEO/ClientStorage.py
> U ZEO/ZEO/Invalidator.py
> U ZEO/ZEO/StorageServer.py
> U ZEO/ZEO/__init__.py
> U ZEO/ZEO/fap.py
> U ZEO/ZEO/smac.py
> U ZEO/ZEO/start.py
> U ZEO/ZEO/trigger.py
> U ZEO/ZEO/zrpc.py
> cvs server: Updating ZEO/ZEO/doc
> cvs server: Updating ZEO/ZEO/misc
> cvs server: Updating ZEO/ZEO/test
> cvs server: Updating ZEO/ZEO/tests
> U ZEO/ZEO/tests/Cache.py
> U ZEO/ZEO/tests/__init__.py
> U ZEO/ZEO/tests/forker.py
> U ZEO/ZEO/tests/multi.py
> U ZEO/ZEO/tests/speed.py
> U ZEO/ZEO/tests/testZEO.py
> cvs server: Updating ZEO/docs
> U ZEO/docs/ClientCache.txt
> U ZEO/docs/ClientStorage.txt
> U ZEO/docs/NonZopeREADME.txt
> U ZEO/docs/ZopeREADME.txt
> U ZEO/docs/start.txt
> cvs server: Updating ZEO/misc
> U ZEO/misc/README
> U ZEO/misc/custom_zodb.py
> U ZEO/misc/start_zeo
> U ZEO/misc/stop_zeo
>
> Jeremy
>
>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zodb-dev

--=20
=2E . . . . . . . . . . . . . . . . . . . . . . .

John D. Heintz | Senior Engineer

1016 La Posada Dr. | Suite 240 | Austin TX 78752
T 512.633.1198 | jheintz@isogen.com

w w w . d a t a c h a n n e l . c o m