Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-142

NUnit test for Index/TestIndexWriter/TestDiverseDocs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Lucene.Net 2.3.1

      Description

      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);
      

      DIGY

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                digydigy Digy
                Reporter:
                digydigy Digy
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: