[ https://issues.apache.org/jira/browse/SOLR-10844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-10844: ---------------------------- Attachment: SOLR-10844.patch Here's a trivial patch that adds the existing point field randomization to one additional dynamicField in the {{schema.xml}} used by many tests. With this change, the following tests will fail whenever points are randomly selected (or when forced via {{-Dsolr.tests.preferPointFields=true}} ... {noformat} [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=SimpleFacetsTest -Dtests.method=testSimpleGroupedFacets -Dtests.seed=6176070F35AB45BA -Dtests.slow=true -Dtests.locale=pl -Dtests.timezone=IET -Dtests.asserts=true -Dtests.file.encoding=UTF-8 [junit4] ERROR 0.01s J1 | SimpleFacetsTest.testSimpleGroupedFacets <<< [junit4] > Throwable #1: java.lang.RuntimeException: Exception during query [junit4] > at __randomizedtesting.SeedInfo.seed([6176070F35AB45BA:D48778148138D2A5]:0) [junit4] > at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:890) [junit4] > at org.apache.solr.request.SimpleFacetsTest.testSimpleGroupedFacets(SimpleFacetsTest.java:386) [junit4] > at org.apache.solr.request.SimpleFacetsTest.testSimpleGroupedFacets(SimpleFacetsTest.java:374) [junit4] > at java.lang.Thread.run(Thread.java:748) [junit4] > Caused by: org.apache.solr.common.SolrException: Exception during facet.field: duration_i1 [junit4] > at org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:810) [junit4] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [junit4] > at org.apache.solr.request.SimpleFacets$3.execute(SimpleFacets.java:743) [junit4] > at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:819) [junit4] > at org.apache.solr.handler.component.FacetComponent.getFacetCounts(FacetComponent.java:329) [junit4] > at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:273) [junit4] > at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295) [junit4] > at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:178) [junit4] > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2487) [junit4] > at org.apache.solr.util.TestHarness.query(TestHarness.java:337) [junit4] > at org.apache.solr.util.TestHarness.query(TestHarness.java:319) [junit4] > at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:864) [junit4] > ... 41 more [junit4] > Caused by: java.lang.IllegalStateException: unexpected docvalues type NUMERIC for field 'duration_i1' (expected=SORTED). Re-index with correct docvalues type. [junit4] > at org.apache.lucene.index.DocValues.checkField(DocValues.java:340) [junit4] > at org.apache.lucene.index.DocValues.getSorted(DocValues.java:392) [junit4] > at org.apache.lucene.search.grouping.TermGroupFacetCollector$SV.doSetNextReader(TermGroupFacetCollector.java:147) [junit4] > at org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33) [junit4] > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:649) [junit4] > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462) [junit4] > at org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:693) [junit4] > at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:477) [junit4] > at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:406) [junit4] > at org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:804) [junit4] > ... 52 more {noformat} {noformat} [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestDistributedGrouping -Dtests.method=test -Dtests.seed=6176070F35AB45BA -Dtests.slow=true -Dtests.locale=es-GT -Dtests.timezone=Africa/Nouakchott -Dtests.asserts=true -Dtests.file.encoding=UTF-8 [junit4] ERROR 2.25s J0 | TestDistributedGrouping.test <<< [junit4] > Throwable #1: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:48848/rhs/e/collection1: Exception during facet.field: a_t [junit4] > at __randomizedtesting.SeedInfo.seed([6176070F35AB45BA:E92238D59B572842]:0) [junit4] > at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:610) [junit4] > at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248) [junit4] > at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:237) [junit4] > at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160) [junit4] > at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:942) [junit4] > at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:957) [junit4] > at org.apache.solr.BaseDistributedSearchTestCase.query(BaseDistributedSearchTestCase.java:599) [junit4] > at org.apache.solr.BaseDistributedSearchTestCase.query(BaseDistributedSearchTestCase.java:587) [junit4] > at org.apache.solr.BaseDistributedSearchTestCase.query(BaseDistributedSearchTestCase.java:566) [junit4] > at org.apache.solr.TestDistributedGrouping.test(TestDistributedGrouping.java:214) [junit4] > at org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsRepeatStatement.callStatement(BaseDistributedSearchTestCase.java:1011) [junit4] > at org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsStatement.evaluate(BaseDistributedSearchTestCase.java:960) [junit4] > at java.lang.Thread.run(Thread.java:748) {noformat} (NOTE: there may be other "distributed grouping" bugs related to points fields that would result in other test failures that are currently masked by the legacy nature of TestDistributedGrouping having only one single (very long) "test" method) > group.facet failures when the grouping field is Points based > ------------------------------------------------------------ > > Key: SOLR-10844 > URL: https://issues.apache.org/jira/browse/SOLR-10844 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Hoss Man > Attachments: SOLR-10844.patch > > > As discovered when working on SOLR-10807: if you change all existing test > configs to use FooPointField instead of TrieFooField, you get odd failures > when {{group.facet}} is used in conjunction with grouping on a point field > (even if the group.facet field is a string field) -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org