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

NUnit test for Index/TestIndexWriter/TestDiverseDocs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • 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

        1. DocumentsWriter.patch
          0.5 kB
          Digy

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: