[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-272) Improve contention on DirectoryProviders in lucene backend

Sanne Grinovero (JIRA) noreply at atlassian.com
Fri Oct 3 04:45:04 EDT 2008


Improve contention on DirectoryProviders in lucene backend
----------------------------------------------------------

                 Key: HSEARCH-272
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-272
             Project: Hibernate Search
          Issue Type: Improvement
          Components: engine
    Affects Versions: 3.1.0.Beta1
            Reporter: Sanne Grinovero
            Assignee: Sanne Grinovero
             Fix For: 3.1.0.Beta2


Currently the lucene backend doesn't acquire locks on DirectoryProvider(s) until needed, but releases them only at end of all work.
So having a workqueue affecting DP A and B in this order:
ABBB will have this locking:
lockA, doA, lockB, doB,doB,doB, unlockA, unlockB.

instead, this would be desirable:
lockA, doA, unlockA, lockB, doB,doB,doB, unlockB

Side-effect is that something like ABAB will be reordered to AABB (keeping correct order from a DP point of view).

-- 
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