Food Tasting and Rolling Back again.

Ross Rick <[email protected]>
Newsgroups gmane.comp.java.prevayler
Message-ID <[email protected]>
I am fairly sure I understand this now but I want to annoy you all one  
more time to be positive.

With Food Tasting on..

execute method is called
transaction is run against the copy
if no errors
transaction is serialized to disk (assuming you are not doing  
snapshots only)
transaction is run against live data.

Now.. for a specific class of errors, food tasting will prevent you  
from creating an inconsistent model because you never changed the  
actual model.
Question 1 :  Does the copy now get rebuilt in memory from the  
Snapshot / journals?

With Food Tasting off..

execute method is called
transaction is serialized to disk
transaction is run against model.


I ask because if I turn off food tasting, I'm going to want to force  
users to redo a transaction that fails and it's not clear to me if the  
journal entry for the failed transaction is on disk.

Question 2 :  Will the transaction journal entry be removed if I throw  
an exeception out of the transactions executeAndQuery method?    Is  
there another way?


As always, thanks for reading and any replies I get.


R




------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.