lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Earwin Burrfoot (JIRA)" <>
Subject [jira] Created: (LUCENE-1668) Trunk fails tests, - related
Date Sat, 30 May 2009 22:01:07 GMT
Trunk fails tests, - related

                 Key: LUCENE-1668
             Project: Lucene - Java
          Issue Type: Bug
         Environment: MacOS 10.6, Java 1.6 64bit
            Reporter: Earwin Burrfoot

    [junit] Testcase: testReadAfterClose(org.apache.lucene.index.TestCompoundFile):	FAILED
    [junit] expected readByte() to throw exception
    [junit] junit.framework.AssertionFailedError: expected readByte() to throw exception
    [junit] 	at org.apache.lucene.index.TestCompoundFile.demo_FSIndexInputBug(
    [junit] 	at org.apache.lucene.index.TestCompoundFile.testReadAfterClose(
    [junit] 	at org.apache.lucene.util.LuceneTestCase.runTest(

This one is a non-bug, if you ask me. The test should fail on SimpleFSD, but on my system creates MMapD and that one cannot be closed, so the read succeeds.

    [junit] ------------- Standard Output ---------------
    [junit] Thread[Thread-34,5,main]: exc
    [junit] java.nio.BufferUnderflowException
    [junit] 	at java.nio.Buffer.nextGetIndex(
    [junit] 	at java.nio.DirectByteBuffer.get(
    [junit] 	at$MMapIndexInput.readByte(
    [junit] 	at
    [junit] 	at
    [junit] 	at
    [junit] 	at org.apache.lucene.index.DirectoryIndexReader$1.doBody(
    [junit] 	at org.apache.lucene.index.SegmentInfos$
    [junit] 	at
    [junit] 	at
    [junit] 	at
    [junit] 	at<init>(
    [junit] 	at org.apache.lucene.index.TestStressIndexing$SearcherThread.doWork(
    [junit] 	at org.apache.lucene.index.TestStressIndexing$
    [junit] NOTE: random seed of testcase 'testStressIndexAndSearching' was: -7374705829444180151
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testStressIndexAndSearching(org.apache.lucene.index.TestStressIndexing):
    [junit] null
    [junit] junit.framework.AssertionFailedError
    [junit] 	at org.apache.lucene.index.TestStressIndexing.runStressTest(
    [junit] 	at org.apache.lucene.index.TestStressIndexing.testStressIndexAndSearching(
    [junit] 	at org.apache.lucene.util.LuceneTestCase.runTest(

This one suceeds sometimes, sometimes (mostly) fails. Is obviously linked with switch to MMapD,
but what is the real cause - I don't know.

    [junit] ------------- Standard Output ---------------
    [junit] NOTE: random seed of testcase 'testSetBufferSize' was: 8481546620770090440
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testSetBufferSize(	Caused
    [junit]$MMapIndexInput cannot be cast to
    [junit] java.lang.ClassCastException:$MMapIndexInput
cannot be cast to
    [junit] 	at$MockFSDirectory.tweakBufferSizes(
    [junit] 	at
    [junit] 	at org.apache.lucene.util.LuceneTestCase.runTest(

Broken assumptions.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message