Re: Prevayler doesn't close journal streams

"Justin T. Sampson" <[email protected]>
Newsgroups gmane.comp.java.prevayler
Message-ID <[email protected]>
Hi Célio,

Thank you for the patch! I'm glad you were able to resolve the issue easily.

Cheers,
Justin

On Thu, Jan 13, 2011 at 7:36 AM, Célio <[email protected]> wrote:

> Howdy,
>
> Our system tries to delete journals and snapshot files in case of
> error during deserialization, but it fails to delete them under
> Windows because the files are locked.  Looking at prevayler's source
> code, I noticed that the streams that read the journals are not being
> closed.  I did two small changes in
> PersistentJournal.recoverPendingTransactions(): (1) closing the
> current journal's stream before proceeding to the next journal, and
> (2) closing the stream in case of an error during the loop.
>
> A patch is attached to this message, however it's a quick-and-dirty
> fix so I guess you will not want to use it.  Feel free to discard it.
>
> Best wishes,
>
> Célio
>
>

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl

_______________________________________________
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.