lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LUCENENET-142) NUnit test for Index/TestIndexWriter/TestDiverseDocs
Date Sun, 16 Nov 2008 11:03:46 GMT

     [ 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.


Mime
View raw message