[ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server
Jim Fulton
jim at zope.com
Fri Oct 3 08:48:02 EDT 2008
On Oct 3, 2008, at 3:55 AM, 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....
This is why FileStorage writes data to the end of the file before
returning from tpc_vote. tpc_finish only updates a single byte of the
file. This is why FileStorage no-longer tries to write it's index
during tpc_finish.
Jim
--
Jim Fulton
Zope Corporation
More information about the ZODB-Dev
mailing list