We are using LuceneTestCase to tests lucene spatial code.  When the
Lucene3x codec is selected, it fails.  It looks like the format is
always Lucene 4.0 -- does it make sense to use 4x format with
codec=3x?

This is using the most recent trunk artifacts from jenkins.


Running 
com.googlecode.lucene.spatial.strategy.prefix.RecursiveGridStrategyWithExtrasTestCase
NOTE: reproduce with: ant test
-Dtestcase=RecursiveGridStrategyWithExtrasTestCase
-Dtestmethod=testWorldCitiesWithinBox
-Dtests.seed=e23db310f7f55e6:-7a0e8ca29b7feb47:-401ee9551f4a5cbb
-Dargs="-Dfile.
encoding=Cp1252"
CheckIndex failed
Segments file=segments_1 numSegments=1 version=4.0 format=FORMAT_4_0
[Lucene 4.0]
  1 of 1: name=_0 docCount=2679
    codec=Lucene3x
    compound=false
FAILED
    WARNING: fixIndex() would remove reference to this segment; full exception:
org.apache.lucene.index.IndexFormatTooNewException: Format version is
not supported (resource:
MockIndexInputWrapper(RAMInputStream(name=_0.fnm))): -2147483648
(needs to be between -2 and -3)
        at 
org.apache.lucene.codecs.lucene3x.Lucene3xFieldInfosReader.read(Lucene3xFieldInfosReader.java:71)
        at 
org.apache.lucene.index.SegmentInfo.loadFieldInfos(SegmentInfo.java:203)
        at 
org.apache.lucene.index.SegmentInfo.getFieldInfos(SegmentInfo.java:280)
        at org.apache.lucene.index.SegmentInfo.getHasProx(SegmentInfo.java:454)
        at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:507)
        at org.apache.lucene.util._TestUtil.checkIndex(_TestUtil.java:166)
        at 
org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:570)
        at 
org.apache.lucene.spatial.SpatialTestCase.tearDown(SpatialTestCase.java:66)
        [SNIP]
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)

WARNING: 1 broken segments (containing 2679 documents) detected

NOTE: reproduce with: ant test
-Dtestcase=RecursiveGridStrategyWithExtrasTestCase
-Dtestmethod=testPolygonIndex
-Dtests.seed=e23db310f7f55e6:-4606b3dc7224f3a4:-401ee9551f4a5cbb
-Dargs="-Dfile.encoding
=Cp1252"
CheckIndex failed
Segments file=segments_1 numSegments=1 version=4.0 format=FORMAT_4_0
[Lucene 4.0]
  1 of 1: name=_0 docCount=51
    codec=Lucene3x
    compound=false
FAILED
    WARNING: fixIndex() would remove reference to this segment; full exception:
org.apache.lucene.index.IndexFormatTooNewException: Format version is
not supported (resource:
MockIndexInputWrapper(RAMInputStream(name=_0.fnm))): -2147483648
(needs to be between -2 and -3)
        at 
org.apache.lucene.codecs.lucene3x.Lucene3xFieldInfosReader.read(Lucene3xFieldInfosReader.java:71)
        at 
org.apache.lucene.index.SegmentInfo.loadFieldInfos(SegmentInfo.java:203)
        at 
org.apache.lucene.index.SegmentInfo.getFieldInfos(SegmentInfo.java:280)
        at org.apache.lucene.index.SegmentInfo.getHasProx(SegmentInfo.java:454)
        at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:507)
        at org.apache.lucene.util._TestUtil.checkIndex(_TestUtil.java:166)
        at 
org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:570)
        at 
org.apache.lucene.spatial.SpatialTestCase.tearDown(SpatialTestCase.java:66)
        [SNIP]
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)

WARNING: 1 broken segments (containing 51 documents) detected

NOTE: test params are: codec=Lucene3x,
sim=RandomSimilarityProvider(queryNorm=true,coord=true): {id=DFR
I(ne)1, RecursiveGridStrategyWithExtrasTestCase=IB LL-D2, name=DFR
I(F)Z(0.3)}, locale=be, timez
one=Japan
NOTE: all tests run in this JVM:
[ExtrasRecursiveGridStrategyTestCase, RecursiveGridStrategyWithExtrasTestCase]
NOTE: Windows Vista 6.0 amd64/Oracle Corporation 1.7.0_01
(64-bit)/cpus=8,threads=1,free=129016992,total=212271104


thanks for any pointers

ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to