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

TestPointFields.testDatePointFieldSortAndFunction() failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.7, 7.0
    • None
    • None

    Description

      My Jenkins found a reproducing branch_6x seed for a TestPointFields.testDatePointFieldSortAndFunction() failure - note that I had to remove -Dtests.method=testDatePointFieldSortAndFunction from the repro line to get it to reproduce:

      Checking out Revision 0f740194e27f4c22d0c79e48115afb2cfd9331dc (refs/remotes/origin/branch_6x)
      [...]
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestPointFields -Dtests.method=testDatePointFieldSortAndFunction -Dtests.seed=A1DB5991BA201A4D -Dtests.multiplier=2 -Dtests.nightly=true -Dtests.slow=true -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt -Dtests.locale=sv -Dtests.timezone=Europe/Copenhagen -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
         [junit4] ERROR   0.43s J6 | TestPointFields.testDatePointFieldSortAndFunction <<<
         [junit4]    > Throwable #1: java.lang.RuntimeException: Exception during query
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([A1DB5991BA201A4D:7666668E19C1B553]:0)
         [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:895)
         [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:862)
         [junit4]    > 	at org.apache.solr.schema.TestPointFields.doTestDatePointFunctionQuery(TestPointFields.java:2763)
         [junit4]    > 	at org.apache.solr.schema.TestPointFields.testDatePointFieldSortAndFunction(TestPointFields.java:872)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
         [junit4]    > Caused by: java.lang.RuntimeException: REQUEST FAILED: xpath=//result/doc[10]/date[@name='number_p_dt_dv_ns'][.='1995-01-10T10:59:11Z']
         [junit4]    > 	xml response was: <?xml version="1.0" encoding="UTF-8"?>
         [junit4]    > <response>
         [junit4]    > <lst name="responseHeader"><int name="status">0</int><int name="QTime">0</int></lst><result name="response" numFound="10" start="0"><doc><str name="id">9</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:20Z</date></doc><doc><str name="id">8</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:19Z</date></doc><doc><str name="id">7</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:18Z</date></doc><doc><str name="id">0</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:11Z</date></doc><doc><str name="id">3</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:14Z</date></doc><doc><str name="id">2</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:13Z</date></doc><doc><str name="id">1</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:12Z</date></doc><doc><str name="id">6</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:17Z</date></doc><doc><str name="id">5</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:16Z</date></doc><doc><str name="id">4</str><date name="number_p_dt_dv_ns">1995-01-10T10:59:15Z</date></doc></result>
         [junit4]    > </response>
         [junit4]    > 	request was:q=*:*&fl=id,+number_p_dt_dv_ns&sort=product(-1,ms(number_p_dt_dv_ns))+asc&wt=xml
         [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:888)
      

      Attachments

        1. SOLR-10815.patch
          0.9 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: