[ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server
Dieter Maurer
dieter at handshake.de
Fri Oct 3 04:51:37 EDT 2008
Christian Theune wrote at 2008-10-3 10:32 +0200:
>On Fri, 2008-10-03 at 09:55 +0200, Dieter Maurer wrote:
>> Jim Fulton wrote at 2008-10-1 13:40 -0400:
>> > ...
>> >> It may well be that a restart *may* not lead into a fully functional
>> >> state (though this would indicate a storage bug)
>> >
>> >A failure in tpc_finish already indicates a storage bug.
>>
>> Maybe -- although "file system is full" might not be so easy to avoid
>> in all cases....
>
>That should be easy to avoid by allocating the space you need in the
>first phase and either release it on an abort or write your 'committed'
>marker into it in the second phase.
That's true for a "FileStorage" -- but it may not be that easy for
other storages (e.g. "BSDDB" storage).
--
Dieter
More information about the ZODB-Dev
mailing list