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

Facets#getAllChildren testing should ignore child order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 9.4
    • modules/facet
    • None
    • New

    Description

      Our javadoc for Facets#getAllChildren explicitly calls out that callers should make no assumptions about child ordering, but a number of our own unit tests turn around and make that assumption. I ran into this when recently trying an optimization that would result in a different child ordering for getAllChildren, and found a number of unit tests that started failing. I'll upload a list of what I found failing.

      Attachments

        1. failing tests.png
          121 kB
          Greg Miller

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gsmiller Greg Miller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h