[ZODB-Dev] Closing Connection Error

Chris Spencer gmane.20.evilspam at spamgourmet.com
Thu Nov 24 21:21:56 EST 2005


I have a threaded application that access a zodb, and when it shuts 
down, all the threads that have root connections to the db call 
transaction.commit(), then delete their root object. However, after I've 
  joined all my threads and attempt:


transaction.abort()
connection.close()

I get the error:

ZODB.POSException.ConnectionStateError: Cannot close a connection joined 
to a transaction

Is there some special procedure for properly closing a zodb? I'm 
following the examples in the wiki pretty closely. Any help is appreciated.

Chris



More information about the ZODB-Dev mailing list