Lucene.Net
  1. Lucene.Net
  2. LUCENENET-221

Lucene.Net.Index.TestAddIndexesNoOptimize.TestHangOnClose fails

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      As indicated in the subject, the TestHangOnClose method fails when run in NUnit.

      1. TermsHashPerField.patch
        1 kB
        Nicholas Paldino
      2. ArrayUtil.patch
        3 kB
        Nicholas Paldino

        Activity

        Hide
        Nicholas Paldino added a comment -

        First, created a Fill method on the ArrayUtils that mimics the fill method on the Array class in Java:

        http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html

        Then, updated the code in TermsHashPerField to more closely mimic the current version of the reset function in Java:

        http://svn.apache.org/repos/asf/lucene/java/trunk/src/java/org/apache/lucene/index/TermsHashPerField.java

        The current implementation was looping through to numPostingsInt, not numPostings, and the correction made.

        Show
        Nicholas Paldino added a comment - First, created a Fill method on the ArrayUtils that mimics the fill method on the Array class in Java: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html Then, updated the code in TermsHashPerField to more closely mimic the current version of the reset function in Java: http://svn.apache.org/repos/asf/lucene/java/trunk/src/java/org/apache/lucene/index/TermsHashPerField.java The current implementation was looping through to numPostingsInt, not numPostings, and the correction made.
        Hide
        Digy added a comment -

        Thanks Nicholas,
        But it is duplicate. See LUCENENET-220

        I am closing this issue.

        DIGY

        Show
        Digy added a comment - Thanks Nicholas, But it is duplicate. See LUCENENET-220 I am closing this issue. DIGY

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development