Re: Corrupted Transaction?

Justin Sampson <[email protected]> Thu, 26 Feb 2015 21:55:04 +0000
Newsgroups gmane.comp.java.prevayler
Message-ID <0FD072A166C6DC4C851F6115F37DDD279AEE9DDD@sm-ex-01-vm.guidewire.com>
Vitor F. Pamplona wrote:

> I think I have a corrupted transaction in one of my .journals in
> production. Is there a way to ignore this transaction? 
> [...]
> java.io.IOException: Expected 2180767 but was 2180768

A corrupted transaction would have thrown some kind of exception
when parsing the transaction itself. The particular exception you're
seeing says that somehow there's actually a _missing_ transaction in
the journal. Prevayler expected to read transaction #2,180,767 but
saw transaction #2,180,768 instead. What journal files currently
exist in the directory? I'm curious whether that transaction number
falls in the middle of a journal file or on the boundary between two
journal files.

Cheers,
Justin
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org