Lucene - Core
  1. Lucene - Core
  2. LUCENE-5242

DirectoryTaxonomyWriter.replaceTaxonomy did not fully reset its state

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.1, 4.6, 6.0
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      If you call DirTaxoWriter.replaceTaxonomy with a larger taxonomy than the current one, you may hit an AIOOBE on the next add category (or getParent) call. I'll attach a testcase + fix shortly.

        Activity

        Hide
        Shai Erera added a comment -

        Patch adds a test + fixes the bug. This could also result in wrong ordinals returned from getParent(). I'll commit shortly.

        Show
        Shai Erera added a comment - Patch adds a test + fixes the bug. This could also result in wrong ordinals returned from getParent(). I'll commit shortly.
        Hide
        ASF subversion and git services added a comment -

        Commit 1525894 from Shai Erera in branch 'dev/trunk'
        [ https://svn.apache.org/r1525894 ]

        LUCENE-5242: DirectoryTaxonomyWriter.replaceTaxonomy did not fully reset its state

        Show
        ASF subversion and git services added a comment - Commit 1525894 from Shai Erera in branch 'dev/trunk' [ https://svn.apache.org/r1525894 ] LUCENE-5242 : DirectoryTaxonomyWriter.replaceTaxonomy did not fully reset its state
        Hide
        ASF subversion and git services added a comment -

        Commit 1525896 from Shai Erera in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1525896 ]

        LUCENE-5242: DirectoryTaxonomyWriter.replaceTaxonomy did not fully reset its state

        Show
        ASF subversion and git services added a comment - Commit 1525896 from Shai Erera in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1525896 ] LUCENE-5242 : DirectoryTaxonomyWriter.replaceTaxonomy did not fully reset its state
        Hide
        Shai Erera added a comment -

        Committed to trunk and 4x.

        Show
        Shai Erera added a comment - Committed to trunk and 4x.
        Hide
        ASF subversion and git services added a comment -

        Commit 1530845 from Robert Muir in branch 'dev/branches/lucene_solr_4_5'
        [ https://svn.apache.org/r1530845 ]

        LUCENE-4998, LUCENE-5242, LUCENE-5254, LUCENE-5262, LUCENE-5263, LUCENE-5264: svn merge -c 1522723 -c 1525896 -c 1529136 -c 1529141 -c 1530063 -c 1530416 -c 1530657

        Show
        ASF subversion and git services added a comment - Commit 1530845 from Robert Muir in branch 'dev/branches/lucene_solr_4_5' [ https://svn.apache.org/r1530845 ] LUCENE-4998 , LUCENE-5242 , LUCENE-5254 , LUCENE-5262 , LUCENE-5263 , LUCENE-5264 : svn merge -c 1522723 -c 1525896 -c 1529136 -c 1529141 -c 1530063 -c 1530416 -c 1530657

          People

          • Assignee:
            Shai Erera
            Reporter:
            Shai Erera
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development