lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <>
Subject [jira] Created: (LUCENENET-142) NUnit test for Index/TestIndexWriter/TestDiverseDocs
Date Tue, 12 Aug 2008 19:25:44 GMT
NUnit test for Index/TestIndexWriter/TestDiverseDocs

                 Key: LUCENENET-142
             Project: Lucene.Net
          Issue Type: Bug
         Environment: Lucene.Net 2.3.1
            Reporter: Digy

Bug in DocumentsWriter.ByteBlockPool.Reset() *[Assuming that ThreadClass patch is appied]*

buffers is a two-dim array
    public byte[][] buffers = new byte[10][];
and should be cleared as
    for (int i = 0; i < bufferUpto; i++)
        // Fully zero fill buffers that we fully used
        Array.Clear(buffers[i], 0, buffers[i].Length);  // not like:  Array.Clear(buffers[i],
0, buffers.Length);


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

View raw message