lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-566) Incorporate Lucene's CheckIndex tool into Solr
Date Mon, 12 Dec 2011 19:37:30 GMT


Hoss Man commented on SOLR-566:

Luca: making CheckIndex work off a specified commit point sounds like a great idea -- although
i think (particularly in the case of your CheckIndexhandler) there would need to be some sanity
checking and clear error messages if that commit point gets deleted in the middle of the CheckIndex.

I think an async operation is the way to go -- check index is something you want to see work
even if the index is really large and it takes a long time -- but i don't have a silver bullet
suggestion for how to do it.   You could follow the model DIH currently uses, where you specify
a "command" to run, an then on subsequent calls you can ask for the "status" of the most recently
run command (and if i remember correctly: attempts to have it run a command while one is already
in progress return info that a command is already running and you have to wait).

Alternately you could go with a "ticket" type system, where you can either ask it to "run"
and it immediately returns an id that you can later use to ask for status about that run --
which would allow multiple concurrent runs with independent result status info ... but i'm
not sure if that's important for CheckIndex (would have definitely been nice for DIH though).
 The one potential problem there s where you maintain that status state (ram? disk?), and
how long you keep it (ie: what frees the ram or removes the data from disk?)

I would go with whatever seems simplest, and we can think about refactoring as needed.
> Incorporate Lucene's CheckIndex tool into Solr
> ----------------------------------------------
>                 Key: SOLR-566
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
> Not sure how to just yet, but I think it would be good to somehow incorporate Lucene's
CheckIndex tool into Solr.  I imagine it can be done nicely through the admin, but I suspect
it makes sense to also do it on startup or even as a request handler.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message