You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Ryan McKinley <ry...@gmail.com> on 2012/01/19 19:22:06 UTC
random testing with codec=Lucene3x and format=FORMAT_4_0?
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: random testing with codec=Lucene3x and format=FORMAT_4_0?
Posted by Ryan McKinley <ry...@gmail.com>.
yup. Thanks!
On Thu, Jan 19, 2012 at 10:35 AM, Robert Muir <rc...@gmail.com> wrote:
> On Thu, Jan 19, 2012 at 1:22 PM, Ryan McKinley <ry...@gmail.com> wrote:
>> 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?
>>
>
> your classpath is incorrect: I added an assertion so its more obvious:
>
> http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java?view=diff&r1=1233519&r2=1233520&pathrev=1233520
>
> --
> lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: random testing with codec=Lucene3x and format=FORMAT_4_0?
Posted by Robert Muir <rc...@gmail.com>.
On Thu, Jan 19, 2012 at 1:22 PM, Ryan McKinley <ry...@gmail.com> wrote:
> 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?
>
your classpath is incorrect: I added an assertion so its more obvious:
http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java?view=diff&r1=1233519&r2=1233520&pathrev=1233520
--
lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org