Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10266

invalid assumptions about doc order in TestPointFields, masking test bug with date functions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Labels:
      None

      Description

      There are a bunch of places in TestPointFields where assertQ() is used to verify that many docs match a query and have particular values – but because of how the XPath expressions are written there are implicit assumptions about the order of the docs matching the order they were added to the index, which isn't always garunteed depending on the randomized merge policy that might be used.

      While fixing this, I also uncovered another test bug when checking DatePointField function sorting due to every doc having the same effective sort value

        Attachments

        1. SOLR-10266.patch
          27 kB
          Chris M. Hostetter

          Issue Links

            Activity

              People

              • Assignee:
                hossman Chris M. Hostetter
                Reporter:
                hossman Chris M. Hostetter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: