Issue Details (XML | Word | Printable)

Key: LUCENE-1459
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michael McCandless
Reporter: Matt Jones
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

CachingWrapperFilter crashes if you call both bits() and getDocIdSet()

Created: 18/Nov/08 09:17 PM   Updated: 25/Sep/09 04:23 PM
Return to search
Component/s: None
Affects Version/s: 2.4
Fix Version/s: 2.4.1, 2.9

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works caching-wrapper-filter.diff 2008-11-18 09:18 PM Matt Jones 2 kB

Lucene Fields: Patch Available, New
Resolution Date: 19/Feb/09 10:03 AM


 Description  « Hide
CachingWrapperFilter uses only a single cache, so calling bits() after calling getDocIdSet() will result in a type error. Additionally, more code than is necessary is wrapped in the @synchronized blocks.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #719716 Fri Nov 21 21:17:06 UTC 2008 mikemccand LUCENE-1459: fix CachingWrapperFilter to do the right thing if the wrong type of bitset is in its cache
Files Changed
MODIFY /lucene/java/trunk/src/test/org/apache/lucene/search/TestCachingWrapperFilter.java
MODIFY /lucene/java/trunk/src/java/org/apache/lucene/search/CachingWrapperFilter.java

Repository Revision Date User Message
ASF #745800 Thu Feb 19 10:03:20 UTC 2009 mikemccand LUCENE-1459: fix CachingWrapperFilter to not throw exception if both bits() and getDocIdSet() are called
Files Changed
MODIFY /lucene/java/branches/lucene_2_4/CHANGES.txt
MODIFY /lucene/java/branches/lucene_2_4/src/java/org/apache/lucene/search/CachingWrapperFilter.java
MODIFY /lucene/java/branches/lucene_2_4
MODIFY /lucene/java/branches/lucene_2_4/src/test/org/apache/lucene/search/TestCachingWrapperFilter.java