IndexAlreadyClosedException thrown for BoboIndexReader.reopen()

Description

Just run test: testIndexReaderReopen and look at the log:

2011/04/11 11:10:28.075 ERROR org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:209)
at org.apache.lucene.index.SegmentReader.terms(SegmentReader.java:938)
at org.apache.lucene.index.FilterIndexReader.terms(FilterIndexReader.java:189)
at org.apache.lucene.index.DirectoryReader$MultiTermEnum.<init>(DirectoryReader.java:973)
at org.apache.lucene.index.MultiReader.terms(MultiReader.java:337)
at org.apache.lucene.index.FilterIndexReader.terms(FilterIndexReader.java:189)
at com.browseengine.bobo.facets.data.FacetDataCache.load(FacetDataCache.java:94)
at com.browseengine.bobo.facets.impl.RangeFacetHandler.load(RangeFacetHandler.java:164)
at com.browseengine.bobo.facets.impl.RangeFacetHandler.load(RangeFacetHandler.java:1)
at com.browseengine.bobo.facets.FacetHandler.load(FacetHandler.java:143)
at com.browseengine.bobo.facets.FacetHandler.loadFacetData(FacetHandler.java:148)
at com.browseengine.bobo.api.BoboIndexReader.loadFacetHandler(BoboIndexReader.java:380)
at com.browseengine.bobo.api.BoboIndexReader.loadFacetHandlers(BoboIndexReader.java:400)
at com.browseengine.bobo.api.BoboIndexReader.facetInit(BoboIndexReader.java:589)
at com.browseengine.bobo.api.BoboIndexReader.facetInit(BoboIndexReader.java:581)
at com.browseengine.bobo.api.BoboIndexReader.getInstanceAsSubReader(BoboIndexReader.java:163)
at com.browseengine.bobo.api.BoboIndexReader.getInstanceAsSubReader(BoboIndexReader.java:154)
at com.browseengine.bobo.api.BoboIndexReader.reopen(BoboIndexReader.java:235)
at com.browseengine.bobo.test.BoboTestCase.testIndexReaderReopen(BoboTestCase.java:2165)
at com.browseengine.bobo.test.BoboTestCase.main(BoboTestCase.java:2378)

Environment

None

Assignee

Xiaoyang Gu

Reporter

John Wang

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure