[ZODB-Dev] Closing Connection Error

Dieter Maurer dieter at handshake.de
Fri Nov 25 15:54:01 EST 2005


Chris Spencer wrote at 2005-11-24 21:21 -0500:
>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

Looks like a persistency/threading bug.

Obviously, there is still some transaction (apparently
associated with the main connection) that is not yet aborted/committed.

You probably will need debugging to find out where this transaction
comes from...

-- 
Dieter


More information about the ZODB-Dev mailing list