[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: PagingManagerImpl::getPageStore

timfox do-not-reply at jboss.com
Thu Nov 20 13:13:50 EST 2008


Another reason why it is not threadsafe:


  | store = newStore(storeName);
  | 

With a race you could get two stores being created, and one throw away. When the store is created it creates files on disk. So you'd get two lots of dirs created on disk with the same name which would fail.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190994#4190994

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190994



More information about the jboss-dev-forums mailing list