You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2011/05/02 15:38:04 UTC

[jira] [Updated] (LUCENE-3062) TestBytesRefHash#testCompact is broken

     [ https://issues.apache.org/jira/browse/LUCENE-3062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer updated LUCENE-3062:
------------------------------------

    Attachment: LUCENE-3062.patch

here is a patch

> TestBytesRefHash#testCompact is broken
> --------------------------------------
>
>                 Key: LUCENE-3062
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3062
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-3062.patch
>
>
> TestBytesRefHash#testCompact fails when run with ant test -Dtestcase=TestBytesRefHash -Dtestmethod=testCompact -Dtests.seed=-7961072421643387492:5612141247152835360
> {noformat}
>     [junit] Testsuite: org.apache.lucene.util.TestBytesRefHash
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.454 sec
>     [junit] 
>     [junit] ------------- Standard Error -----------------
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestBytesRefHash -Dtestmethod=testCompact -Dtests.seed=-7961072421643387492:5612141247152835360
>     [junit] NOTE: test params are: codec=PreFlex, locale=et, timezone=Pacific/Tahiti
>     [junit] NOTE: all tests run in this JVM:
>     [junit] [TestBytesRefHash]
>     [junit] NOTE: Linux 2.6.35-28-generic amd64/Sun Microsystems Inc. 1.6.0_24 (64-bit)/cpus=12,threads=1,free=363421800,total=379322368
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: testCompact(org.apache.lucene.util.TestBytesRefHash):	Caused an ERROR
>     [junit] bitIndex < 0: -27
>     [junit] java.lang.IndexOutOfBoundsException: bitIndex < 0: -27
>     [junit] 	at java.util.BitSet.set(BitSet.java:262)
>     [junit] 	at org.apache.lucene.util.TestBytesRefHash.testCompact(TestBytesRefHash.java:146)
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260)
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189)
>     [junit] 
>     [junit] 
>     [junit] Test org.apache.lucene.util.TestBytesRefHash FAILED
> {noformat}
> the test expects that _TestUtil.randomRealisticUnicodeString(random, 1000); will never return the same string.
> I will upload a patch soon.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org