Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3188

The class from cotrub directory org.apache.lucene.index.IndexSplitter creates a non correct index

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.2
    • Fix Version/s: 3.3, 4.0-ALPHA
    • Component/s: modules/other
    • Labels:
      None
    • Environment:

      Bug is present for all environments.
      I used in this case - Windows Server 2003, Java Hot Spot Virtual Machine.

    • Lucene Fields:
      New, Patch Available

      Description

      When using the method IndexSplitter.split(File destDir, String[] segs) from the Lucene cotrib directory (contrib/misc/src/java/org/apache/lucene/index) it creates an index with segments descriptor file with wrong data. Namely wrong is the number representing the name of segment that would be created next in this index.
      If some of the segments of the index already has this name this results either to impossibility to create new segment or in crating of an corrupted segment.

        Attachments

        1. LUCENE-3188-fix1.patch
          0.5 kB
          Uwe Schindler
        2. LUCENE-3188.patch
          6 kB
          Steven Rowe
        3. LUCENE-3188.patch
          4 kB
          Steven Rowe
        4. LUCENE-3188.patch
          0.9 kB
          Ivan Dimitrov Vasilev
        5. IndexSplitter.java
          6 kB
          Ivan Dimitrov Vasilev
        6. TestIndexSplitter.java
          3 kB
          Ivan Dimitrov Vasilev

          Activity

            People

            • Assignee:
              sarowe Steven Rowe
              Reporter:
              ivandimitrovvasile Ivan Dimitrov Vasilev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: