lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Garski (JIRA)" <>
Subject [jira] Updated: (LUCENENET-339) FilterCleaner throws exception
Date Thu, 04 Feb 2010 22:51:27 GMT


Michael Garski updated LUCENENET-339:

    Attachment: LUCENENET-339.patch

Patch attached.

There is no unit test for the FilterCleaner functionality currently, which is why this issue
was not caught until I placed more than 100 filters in the FilterManager (the default value
to trigger the cleaning).  I did not create a new unit test for the FilterCleaner yet.

> FilterCleaner throws exception
> ------------------------------
>                 Key: LUCENENET-339
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Michael Garski
>         Attachments: LUCENENET-339.patch
> The FilterCleaner that is used by the FilterManager to purge filters throws an exception
when called:
> System.InvalidCastException: Objects are not Map.Entry: a is System.Int32; b is System.Int32
>    at Lucene.Net.Search.FilterManager.FilterCleaner.AnonymousClassComparator.Compare(Object
a, Object b) in C:\SVN Projects\Lucene.Net\trunk\C#\src\Lucene.Net\Search\FilterManager.cs:line
>    at System.Collections.Generic.SortedDictionary`2.KeyValuePairComparer.Compare(KeyValuePair`2
x, KeyValuePair`2 y)
>    at System.Collections.Generic.TreeSet`1.Add(T item)
>    at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)
>    at Lucene.Net.Search.FilterManager.FilterCleaner.Run() in C:\SVN Projects\Lucene.Net\trunk\C#\src\Lucene.Net\Search\FilterManager.cs:line
>    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback
callback, Object state)
>    at System.Threading.ThreadHelper.ThreadStart()
> I'm working on a patch and will post it shortly.

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

View raw message