Re: ACIDity of Prevayler 2.6
Arnaud Masson <[email protected]> Thu, 15 Nov 2012 09:56:04 +0100
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
Hi Klaus, Robert
"Applying transactions to the system
before they are written will cause queries to see unwritten
changes."
I think like Robert that tx should be written only after being
successfully applied to the in-memory model.
The change will not be visible if the tx is written in the same
"lock scope" as the disk IO.
pseudo code:
writeLock.lock()
try {
appyTxOnModel(tx)
writeTxOnDisk(tx);
}
catch (..) {
rollback();
}
finally {
writeLock.unlock();
}
?
Arnaud
On 15/11/2012 03:58, Klaus Wuestefeld wrote:
Hi Robert,
But why does prevayler write to the journal before execution?
We do it the other way around. If the command fails, either
gracefully or fatally, nothing is persisted. If it succeeds but
the append fails we halt the system and report falure to the
calling code. If this is bad, please explain why!
I had answered in my last comment here:
https://gist.github.com/1103582
Klaus
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org