New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lucene wrapped in SailRepository with multithreading gives error #192
Comments
Just to confirm you are using a connection per thread? |
On 24 Jun 2016 9:45 p.m., "pulquero" notifications@github.com wrote:
Yes. Also I am opening an isolated transaction (read only or this kind) but
|
Question for someone in the know but why is every class in rdf4j-sail-lucene marked as deprecated? |
It looks as if these classes were for an older Lucene version that we got rid of. The idea when transitioning to RDF4J was to remove support for Lucene 3 and 4, and only keep supporting the latest Lucene 5 (alongside solr and elasticsearch of course). However due to the fact that the transition took so long and I had to do several large sync operations to keep the new github repo up to date with developments on the bitbucket side, something may have gone wonky. @pulquero could you doublecheck if we actually have the correct version of the lucene sail code included in the GitHub repo? If not, we should probably re-insert that part of the code from Bitbucket. |
It looks to be the correct one, which is this one https://bitbucket.org/openrdf/sesame/src/69dcca77110d/core/sail/fts/lucene/?at=master but the classes are deprecated here. |
They might simply be the result of a bad merge. If it's the correct code we sent from my phone
|
@jgrzebyta PR with fix now available. Please take a look and confirm if you believe the newly added test covers your use case. |
@pulquero IMO The test code covers my case. Unfortunately I do not have the original code so I cannot check the solution - I went into single thread solution. Ps. I am not sure if your pull request was added to the main project if so please could you close this issue. |
Affected: v 2.0-SNAPSHOT,
Java: openjdk-8
os: Ubuntu 16.04
I use
LuceneSailRepository
wrapped inSailsRepository
.MemoryStore
with dump file is used as a storage.I load data in multithreads managed by
Executors.newFixedThreadPool
pool. When I do.invokeAll
I got error about closed call when new request is done. It seems Lucene index in not thread safety.
The full stacktrace is:
The text was updated successfully, but these errors were encountered: