You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Vitaliy Utrobin <vi...@xenotrope.com> on 2001/04/03 22:07:06 UTC

threading in JDBCDescriptorsStore

I submitted 2 simultaneous requests to slide,and JDBCDescriptorsStore
choked, since connection is shared.
Is it a bug? if so we need to fix it.

Re: threading in JDBCDescriptorsStore

Posted by Remy Maucherat <re...@betaversion.org>.
Quoting Vitaliy Utrobin <vi...@xenotrope.com>:

> I submitted 2 simultaneous requests to slide,and JDBCDescriptorsStore
> choked, since connection is shared.
> Is it a bug? if so we need to fix it.

The store should refuse to do two write operations at once. It is not written 
at all for concurrency. If there are too many write operations attempted at 
once (or it there's just one, but it would take a long time to complete - like 
a MOVE on a collection with lots of members), some of them should fail, but the 
store shouldn't end up in an inconsistent state (if it does, then it's a 
critical bug).
I plan to add a store similar to the current store, but which would use a 
connection pool, and allow concurrency.

Remy