[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-211) SharedReaderProvider: should own lock when testing for index state

Emmanuel Bernard (JIRA) noreply at atlassian.com
Mon Jun 30 09:37:37 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard updated HSEARCH-211:
-------------------------------------

         Assignee: Sanne Grinovero
    Fix Version/s: 3.1.0.Beta1

> SharedReaderProvider: should own lock when testing for index state
> ------------------------------------------------------------------
>
>                 Key: HSEARCH-211
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-211
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: directory provider
>            Reporter: Sanne Grinovero
>            Assignee: Sanne Grinovero
>             Fix For: 3.1.0.Beta1
>
>
> Developing a new IndexReader I made a stress-test to compare performance to base readers, but got this when measuring SharedReaderProvider:
> Exception in thread "pool-2-thread-13" org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
> 	at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:163)
> 	at org.apache.lucene.index.DirectoryIndexReader.isCurrent(DirectoryIndexReader.java:149)
> 	at org.hibernate.search.reader.SharedReaderProvider.openReader(SharedReaderProvider.java:83)
> 	at org.hibernate.search.query.FullTextQueryImpl.buildSearcher(FullTextQueryImpl.java:486)
> 	at org.hibernate.search.query.FullTextQueryImpl.getResultSize(FullTextQueryImpl.java:528)
> 	at org.hibernate.search.test.reader.performance.SearchActivity.doAction(SearchActivity.java:24)
> 	at org.hibernate.search.test.reader.performance.AbstractActivity.run(AbstractActivity.java:54)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> 	at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list