[
https://issues.apache.org/jira/browse/SOLR-7619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramkumar Aiyengar updated SOLR-7619:
------------------------------------
Attachment: SOLR-7619.patch
Attached is a patch to fix this failure.
I looked into this, and looks like the reason behind this is that the following
sequence:
{code}
add 5 documents
delete 1 document
commit
{code}
Somehow leads to two segments being created, one with four documents, and the
other with 1. I can't imagine the soft commit frequency being hit or something
like that, but may be some other test parameter deep in Lucene is triggering
this -- I haven't been able to figure out why.
Since this test doesn't aim to verify Lucene behaviour anyway, I modified the
test case to account for multiple segments..
> SegmentsInfoRequestHandlerTest failure
> --------------------------------------
>
> Key: SOLR-7619
> URL: https://issues.apache.org/jira/browse/SOLR-7619
> Project: Solr
> Issue Type: Bug
> Components: Tests
> Affects Versions: 5.2, 5.3, Trunk
> Reporter: Steve Rowe
> Priority: Minor
> Attachments: SOLR-7619.patch
>
>
> Reproducible failure on trunk & 5.2 release branch:
> {noformat}
> ant test -Dtestcase=SegmentsInfoRequestHandlerTest
> -Dtests.seed=194C71A0BDF1668A -Dtests.multiplier=2 -Dtests.nightly=true
> {noformat}
> Both {{-Dtests.multiplier=2}} and {{-Dtests.nightly=true}} are required to
> reproduce.
> {noformat}
> FAILED:
> org.apache.solr.handler.admin.SegmentsInfoRequestHandlerTest.testSegmentInfosData
> Error Message:
> Exception during query
> Stack Trace:
> java.lang.RuntimeException: Exception during query
> at
> __randomizedtesting.SeedInfo.seed([194C71A0BDF1668A:65E553FB0B19D115]:0)
> at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:794)
> at
> org.apache.solr.handler.admin.SegmentsInfoRequestHandlerTest.testSegmentInfosData(SegmentsInfoRequestHandlerTest.java:59)
> [...]
> Caused by: java.lang.RuntimeException: REQUEST FAILED:
> xpath=5=//lst[@name='segments']/lst[1]/int[@name='size']
> xml response was: <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int
> name="QTime">0</int></lst><lst name="segments"><lst name="_0"><str
> name="name">_0</str><int name="delCount">1</int><long
> name="sizeInBytes">2042</long><int name="size">4</int><date
> name="age">2015-06-01T19:57:31.221Z</date><str
> name="source">flush</str></lst><lst name="_1"><str name="name">_1</str><int
> name="delCount">0</int><long name="sizeInBytes">1864</long><int
> name="size">1</int><date name="age">2015-06-01T19:57:31.224Z</date><str
> name="source">flush</str></lst></lst>
> </response>
> request was:wt=xml&qt=/admin/segments
> at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:787)
> ... 40 more
> FAILED:
> org.apache.solr.handler.admin.SegmentsInfoRequestHandlerTest.testSegmentInfos
> Error Message:
> Exception during query
> Stack Trace:
> java.lang.RuntimeException: Exception during query
> at
> __randomizedtesting.SeedInfo.seed([194C71A0BDF1668A:551BE61F77FDBEDA]:0)
> at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:794)
> at
> org.apache.solr.handler.admin.SegmentsInfoRequestHandlerTest.testSegmentInfos(SegmentsInfoRequestHandlerTest.java:52)
> [...]
> Caused by: java.lang.RuntimeException: REQUEST FAILED:
> xpath=1=count(//lst[@name='segments']/lst)
> xml response was: <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int
> name="QTime">0</int></lst><lst name="segments"><lst name="_2"><str
> name="name">_2</str><int name="delCount">1</int><long
> name="sizeInBytes">2042</long><int name="size">4</int><date
> name="age">2015-06-01T19:57:31.239Z</date><str
> name="source">flush</str></lst><lst name="_3"><str name="name">_3</str><int
> name="delCount">0</int><long name="sizeInBytes">1864</long><int
> name="size">1</int><date name="age">2015-06-01T19:57:31.242Z</date><str
> name="source">flush</str></lst></lst>
> </response>
> request was:wt=xml&qt=/admin/segments
> at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:787)
> ... 40 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]