Re: Food Tasting, Memory and Rolling Back Transactions.
Ross Rick <[email protected]>
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
Ok.. let me see if I understand. Transaction starts, is written to disk, then the code blows up. What happens next? The transaction is attempted again on load. If it continues to fail (deterministic or not) then I have to manually remove the transaction? On Jul 27, 2009, at 3:17 PM, Justin T. Sampson wrote: > On Mon, Jul 27, 2009 at 1:26 PM, Ross Rick<[email protected]> wrote: > >> So yes, I am ok with keeping the model safe from deterministic >> errors. My concern is an error beyond my control after the model has >> been modified in the transaction. As I understand it Prevayler will >> not set the model back to the state it was in before the transaction >> started. I can't imagine how it could. And now reading this I >> understand that this is independent of food tasting. Of course, the >> transaction will not be serialized to disk so I can reload the model >> to the correct state. Since we are in an exception state I would be >> unlikely to be able to reverse the changes made to the model anyway, >> so a reload is really required in all cases. > > The transaction *is* serialized to disk. Transactions are written to > the journal before being executed. > > Cheers, > Justin > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion > _______________________________________________ > "Databases in Memoriam" -- http://www.prevayler.org > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org