Hi, Dieter<br><br><div><span class="gmail_quote">On 2/14/07, <b class="gmail_sendername">Dieter Maurer</b> &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Arve Knudsen wrote at 2007-2-14 16:34 +0100:<br>&gt;I sometimes receive an exception when closing a ZODB, due to it trying to<br>&gt;remove a lock file which doesn&#39;t exist. Given the backtrace can you tell me<br>&gt;whether this is something which should be rectified in ZODB? I suspect the
<br>&gt;problem lies in the fact that the database is closed from atexit, maybe ZODB<br>&gt;has already registered some kind of cleanup from atexit?<br><br>Have you registered a &quot;close&quot; function for your storage, too?
<br><br>The API is a bit inconsitent:<br><br>&nbsp;&nbsp;While you open both a storage and a DB, the &quot;DB.close()&quot; implicitly<br>&nbsp;&nbsp;closes the storage as well.<br><br>&nbsp;&nbsp;Thus, if you have registered a &quot;storage.close&quot;, the &quot;
DB.close()&quot;<br>&nbsp;&nbsp;might find the storage already closed and get an error as you<br>&nbsp;&nbsp;reported.</blockquote><div><br>I&nbsp;haven&#39;t&nbsp;scheduled&nbsp;the&nbsp;storage&nbsp;for&nbsp;closing,&nbsp;it&nbsp;only&nbsp;exists&nbsp;within&nbsp;my&nbsp;database.&nbsp;I&nbsp;added&nbsp;some&nbsp;debugging&nbsp;statements&nbsp;to&nbsp;see&nbsp;if&nbsp;the&nbsp;ZODB&nbsp;storage&nbsp;were&nbsp;closed&nbsp;several&nbsp;times,&nbsp;but&nbsp;it&nbsp;was&nbsp;not&nbsp;so.&nbsp;So&nbsp;it&nbsp;seems&nbsp;this&nbsp;is&nbsp;internal&nbsp;to&nbsp;ZODB.
<br><br>Arve&nbsp;&nbsp;</div><br></div><br>