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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0, 3.2
    • 3.3, 4.0-ALPHA
    • modules/other
    • None
    • Bug is present for all environments.
      I used in this case - Windows Server 2003, Java Hot Spot Virtual Machine.

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: