Lucene.Net
  1. Lucene.Net
  2. LUCENENET-142

NUnit test for Index/TestIndexWriter/TestDiverseDocs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Issue Links

          Activity

          Hide
          Digy added a comment -

          Patch of LUCENENET-145 covers this issue.
          DIGY

          Show
          Digy added a comment - Patch of LUCENENET-145 covers this issue. DIGY

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development