You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Jayson Minard (JIRA)" <ji...@apache.org> on 2009/05/09 07:02:45 UTC

[jira] Updated: (SOLR-1155) Change DirectUpdateHandler2 to allow concurrent adds during an autocommit

     [ https://issues.apache.org/jira/browse/SOLR-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayson Minard updated SOLR-1155:
--------------------------------

    Attachment: DirectUpdateHandler3.java

I created DirectUpdateHandler3 as a copy of DirectUpdateHandler2 and then did a pass across it rebuilding the locking, stats, and tracker.  I am basically at the "IDE show no errors" stage and going to read it a few more times, and start testing.  Feedback is welcome as I'm in the dark on a few areas of this code and I am working from a lot of assumptions.  Some event placeholder methods remain while I think through the issues, will trim it back when done.

Events to the auto commit tracker are within the locks to help avoid cases where we set the counts to 0 after other work has concurrently been done.  The stats information has similar concerns and is not yet dealt with, so some stats might reset to 0 on commit when there was further work being done (so they should not go to 0).

> Change DirectUpdateHandler2 to allow concurrent adds during an autocommit
> -------------------------------------------------------------------------
>
>                 Key: SOLR-1155
>                 URL: https://issues.apache.org/jira/browse/SOLR-1155
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Jayson Minard
>         Attachments: DirectUpdateHandler3.java
>
>
> Currently DirectUpdateHandler2 will block adds during a commit, and it seems to be possible with recent changes to Lucene to allow them to run concurrently.  
> See: http://www.nabble.com/Autocommit-blocking-adds---AutoCommit-Speedup--td23435224.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.