lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENE-1160) MergeException from CMS threads should record the Directory
Date Fri, 01 Feb 2008 20:25:10 GMT

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

Michael McCandless resolved LUCENE-1160.
----------------------------------------

    Resolution: Fixed

> MergeException from CMS threads should record the Directory
> -----------------------------------------------------------
>
>                 Key: LUCENE-1160
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1160
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: LUCENE-1160.patch
>
>
> When you hit an unhandled exception in ConcurrentMergeScheduler, it
> throws a MergePolicy.MergeException, but there's no easy way to figure
> out which index caused this (if you have more than one).
> I plan to add the Directory to the MergeException.  I also made a few
> other small changes to ConcurrentMergeScheduler:
>   * Added handleMergeException method, which is called on exception,
>     so that you can subclass ConcurrentMergeScheduler to do something
>     when an exception occurs.
>   * Added getMergeThread() method so you can override how the threads
>     are created (eg, if you want to make them in a different thread
>     group, use a pool, change priorities, etc.).
>   * Added doMerge(...) to actually do this merge, so you can do
>     something before starting and after finishing a merge.
>   * Changed private -> protected on a few attrs
> I plan to commit in a day or two.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message