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

Robert Muir updated LUCENE-3601:
--------------------------------

    Attachment: LUCENE-3601.patch

updated patch: fixing the CFS bug as discussed, but with a new fail:

Looking at the FNX bug, I thought that MDW should also really be testing that 
sync is being called correctly as well, so after checkindex + new IndexWriter I 
added crash() + checkindex + new indexwriter.

This only causes one additional fail, in TestMultiReader, maybe its a false 
fail, I didn't look any further... but we should be able to do this I think for 
all tests...
{noformat}
    [junit] ------------- Standard Output ---------------
    [junit] CheckIndex failed
    [junit] Segments file=segments_4 numSegments=2 version=4.0 
format=FORMAT_4_0 [Lucene 4.0]
    [junit]   1 of 2: name=_0 docCount=1
    [junit]     codec=Lucene40
    [junit]     compound=false
    [junit]     hasProx=true
    [junit]     numFiles=48
    [junit]     size (MB)=0.617
    [junit]     diagnostics = {os.version=3.0.0-12-generic, os=Linux, 
lucene.version=4.0-SNAPSHOT, source=flush, os.arch=amd64, 
java.version=1.7.0_01, java.vendor=Oracle Corporation}
    [junit]     has deletions [delFileName=_0_1.del]
    [junit]     test: open reader.........FAILED
    [junit]     WARNING: fixIndex() would remove reference to this segment; 
full exception:
    [junit] org.apache.lucene.index.CorruptIndexException: document count 
mismatch: deleted docs count 0 vs segment doc count 1 segment=_0
    [junit]     at 
org.apache.lucene.index.SegmentReader.loadLiveDocs(SegmentReader.java:166)
    [junit]     at 
org.apache.lucene.index.SegmentReader.get(SegmentReader.java:116)
    [junit]     at 
org.apache.lucene.index.SegmentReader.get(SegmentReader.java:91)
    [junit]     at 
org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:528)
    [junit]     at 
org.apache.lucene.util._TestUtil.checkIndex(_TestUtil.java:155)
{noformat}
                
> testIWondiskfull unreferenced files failure
> -------------------------------------------
>
>                 Key: LUCENE-3601
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3601
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-3601.patch, LUCENE-3601.patch
>
>
> NOTE: reproduce with: ant test -Dtestcase=TestIndexWriterOnDiskFull 
> -Dtestmethod=testAddDocumentOnDiskFull 
> -Dtests.seed=aff9b14dd518cfb:4d2f112726e2947f:-2b03094a43a947ee 
> -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"
> Reproduces some of the time...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to