You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2008/11/16 12:03:46 UTC

[jira] Closed: (LUCENENET-142) NUnit test for Index/TestIndexWriter/TestDiverseDocs

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

Digy closed LUCENENET-142.
--------------------------

    Resolution: Fixed
      Assignee: Digy

Patch of LUCENENET-145 covers this issue.
DIGY

> NUnit test for Index/TestIndexWriter/TestDiverseDocs
> ----------------------------------------------------
>
>                 Key: LUCENENET-142
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-142
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: Lucene.Net 2.3.1
>            Reporter: Digy
>            Assignee: Digy
>         Attachments: DocumentsWriter.patch
>
>
> Bug in DocumentsWriter.ByteBlockPool.Reset() *[Assuming that ThreadClass patch is appied]*
> buffers is a two-dim array
> {code}
>     public byte[][] buffers = new byte[10][];
> {code}
> and should be cleared as
> {code}
>     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);
> {code}
> DIGY

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