[jbosscache-dev] NBST + persistent state

Manik Surtani manik at jboss.org
Wed Feb 25 13:04:42 EST 2009


Hi guys

I might have found a potential flaw in the NBST impl that we have.

The way it works, transient state is written to the stream, and when  
this is done, the tx log is flushed.  When the tx log is small, a  
FLUSH is requested and then the remaining tx log is written.

But the flush isn't lifted here - the flush is only lifted once the  
state transfer process is complete, and in between these 2 events is  
the generation, streaming and storing of persistent state.  Which is  
potentially much bigger than transient state, and could mean that the  
flush is in place for much longer than expected.

Any thoughts here, Jason?  Perhaps a solution would be to stream  
persistent state before the tx log is flushed?  Could lead to wacky  
stream multiplexing on the receiver's end though.
--
Manik Surtani
Lead, JBoss Cache
http://www.jbosscache.org
manik at jboss.org




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosscache-dev/attachments/20090225/60fd9d88/attachment.html 


More information about the jbosscache-dev mailing list