Concurent access with read-only embedded database

43 views
Skip to first unread message

vlg

unread,
May 15, 2013, 2:10:21 PM5/15/13
to ne...@googlegroups.com
Hello there,

Is it possible to use a read-only embbeded database with multiple concurent accesses ?

I've a web application which calls multiple web-services using asynchronous AJAX, all of them accessing data through a read-only embedded database. Everything seems fines with one or two calls, but with more accesses, I get the following exception:

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
NativeFSLock@/store/neo/AID884/index/lucene/node/node_auto_index/write.lock

Any idea ?

Thanks :)

-----------------------------------------------------
Context:
Windows Server 2008 x64
Neo4j 1.8
Java 1.6 u41-b02
Database opened in read-only mode

Peter Neubauer

unread,
May 17, 2013, 9:16:19 AM5/17/13
to Neo4j User
Hi there,
I don't think the ReadOnly database is tested or intended to be used
in product from different threads, etc. IMHO it is MUCH better to
either share a normal Neo4j instance between the apps in one VM as a
singleton, or use the HA setup to have full read slaves serving
different apps.

However, if you can reproduce this reliably in a test, it would be
great if you can fiel a bug?

/peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

The authoritative book on graph databases - http://graphdatabases.com
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages