[ 
https://issues.apache.org/jira/browse/SOLR-12096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16431862#comment-16431862
 ] 

Mikhail Khludnev commented on SOLR-12096:
-----------------------------------------

Thank you, [~ichattopadhyaya], and [~munendrasn]! 

fwiw, beasting the fixed master got me unrelated failure 

{code}
  [beaster]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestSubQueryTransformerDistrib -Dtests.seed=A82E8066BDA80D45 
-Dtests.slow=true -Dtests.badapples=true -Dtests.locale=sr-Latn-ME 
-Dtests.timezone=America/Edmonton -Dtests.asserts=true 
-Dtests.file.encoding=ISO-8859-1
  [beaster] [10:29:58.739] ERROR   0.00s | TestSubQueryTransformerDistrib 
(suite) <<<
  [beaster]    > Throwable #1: java.lang.Exception: Error starting up 
MiniSolrCloudCluster
  [beaster]    >        at 
__randomizedtesting.SeedInfo.seed([A82E8066BDA80D45]:0)
  [beaster]    >        at 
org.apache.solr.cloud.MiniSolrCloudCluster.checkForExceptions(MiniSolrCloudCluster.java:513)
  [beaster]    >        at 
org.apache.solr.cloud.MiniSolrCloudCluster.<init>(MiniSolrCloudCluster.java:251)
  [beaster]    >        at 
org.apache.solr.cloud.SolrCloudTestCase$Builder.configure(SolrCloudTestCase.java:190)
  [beaster]    >        at 
org.apache.solr.response.transform.TestSubQueryTransformerDistrib.setupCluster(TestSubQueryTransformerDistrib.java:71)
....
  [beaster]    >        Suppressed: java.lang.AssertionError
  [beaster]    >                at 
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.getUpperBoundASTs(WildcardTypeImpl.java:86)
  [beaster]    >                at 
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.getUpperBounds(WildcardTypeImpl.java:122)
  [beaster]    >                at 
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.toString(WildcardTypeImpl.java:190)
  [beaster]    >                at 
java.lang.reflect.Type.getTypeName(Type.java:46)
  [beaster]    >                at 
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.toString(ParameterizedTypeImpl.java:234)
  [beaster]    >                at 
java.lang.reflect.Type.getTypeName(Type.java:46)
  [beaster]    >                at 
java.lang.reflect.Method.specificToGenericStringHeader(Method.java:421)
  [beaster]    >                at 
java.lang.reflect.Executable.sharedToGenericString(Executable.java:163)
  [beaster]    >                at 
java.lang.reflect.Method.toGenericString(Method.java:415)
  [beaster]    >                at java.beans.MethodRef.set(MethodRef.java:46)
  [beaster]    >                at 
java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:117)
  [beaster]    >                at 
java.beans.MethodDescriptor.<init>(MethodDescriptor.java:72)
  [beaster]    >                at 
java.beans.MethodDescriptor.<init>(MethodDescriptor.java:56)
  [beaster]    >                at 
java.beans.Introspector.getTargetMethodInfo(Introspector.java:1205)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:426)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:173)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:260)
  [beaster]    >                at 
java.beans.Introspector.<init>(Introspector.java:407)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:173)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:260)
  [beaster]    >                at 
java.beans.Introspector.<init>(Introspector.java:407)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:173)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:260)
  [beaster]    >                at 
java.beans.Introspector.<init>(Introspector.java:407)
  [beaster]    >                at 
java.beans.Introspector.getBeanInfo(Introspector.java:173)
  [beaster]    >                at 
org.apache.solr.util.SolrPluginUtils.findSetter(SolrPluginUtils.java:1027)
  [beaster]    >                at 
org.apache.solr.util.SolrPluginUtils.invokeSetters(SolrPluginUtils.java:1011)
  [beaster]    >                at 
org.apache.solr.util.SolrPluginUtils.invokeSetters(SolrPluginUtils.java:1000)
  [beaster]    >                at 
org.apache.solr.metrics.SolrMetricReporter.init(SolrMetricReporter.java:61)
  [beaster]    >                at 
org.apache.solr.metrics.SolrMetricManager.loadReporter(SolrMetricManager.java:930)
  [beaster]    >                at 
org.apache.solr.metrics.SolrMetricManager.loadReporters(SolrMetricManager.java:866)
  [beaster]    >                at 
org.apache.solr.core.CoreContainer.load(CoreContainer.java:552)
  [beaster]    >                at 
org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:268)
  [beaster]    >                at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:188)
  [beaster]    >                at 
org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:139)
  [beaster]    >                at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:741)
  [beaster]    >                at 
org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1474)
  [beaster]    >                at 
org.eclipse.jetty.servlet.ServletHandler.setFilterMappings(ServletHandler.java:1537)
  [beaster]    >                at 
org.eclipse.jetty.servlet.ServletHandler.addFilterMapping(ServletHandler.java:1183)
  [beaster]    >                at 
org.eclipse.jetty.servlet.ServletHandler.addFilterWithMapping(ServletHandler.java:1020)
  [beaster]    >                at 
org.eclipse.jetty.servlet.ServletContextHandler.addFilter(ServletContextHandler.java:447)
  [beaster]    >                at 
org.apache.solr.client.solrj.embedded.JettySolrRunner$1.lifeCycleStarted(JettySolrRunner.java:308)
  [beaster]    >                at 
org.eclipse.jetty.util.component.AbstractLifeCycle.setStarted(AbstractLifeCycle.java:179)
  [beaster]    >                at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
  [beaster]    >                at 
org.apache.solr.client.solrj.embedded.JettySolrRunner.start(JettySolrRunner.java:396)
  [beaster]    >                at 
org.apache.solr.client.solrj.embedded.JettySolrRunner.start(JettySolrRunner.java:369)
  [beaster]    >                at 
org.apache.solr.cloud.MiniSolrCloudCluster.startJettySolrRunner(MiniSolrCloudCluster.java:391)
  [beaster]    >                at 
org.apache.solr.cloud.MiniSolrCloudCluster.lambda$new$0(MiniSolrCloudCluster.java:247)
  [beaster]    >                at 
java.util.concurrent.FutureTask.run(FutureTask.java:266)
  [beaster]    >                at 
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:192)
  [beaster]    >                at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  [beaster]    >                at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  [beaster]    >                ... 1 more
{code}

Did anybody see something like that? 

 

> Inconsistent response format in subquery transform
> --------------------------------------------------
>
>                 Key: SOLR-12096
>                 URL: https://issues.apache.org/jira/browse/SOLR-12096
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Munendra S N
>            Assignee: Ishan Chattopadhyaya
>            Priority: Major
>             Fix For: 7.4
>
>         Attachments: SOLR-12096.patch, SOLR-12096.patch, SOLR-12096.patch, 
> SOLR-12096.patch, SOLR-12096.patch, SOLR-12096.testsubquery.patch
>
>
> Solr version - 6.6.2
> The response of subquery transform is inconsistent with multi-shard compared 
> to single-shard
> h1. Single Shard collection
> Request 
> {code:java}
> localhost:8983/solr/k_test/search?sort=score desc,uniqueId 
> desc&q.op=AND&wt=json&q={!parent which=parent_field:true score=max}({!edismax 
> v=$origQuery})&facet=false&fl=uniqueId&fl=score&fl=_children_:[subquery]&fl=uniqueId&origQuery=false&qf=parent_field&_children_.fl=uniqueId&_children_.fl=score&_children_.rows=3&spellcheck=false&_children_.q={!edismax
>  qf=parentId v=$row.uniqueId}&rows=1
> {code}
> Response for above request
> {code:json}
> {
>     "responseHeader": {
>         "zkConnected": true,
>         "status": 0,
>         "QTime": 0,
>         "params": {
>             "fl": [
>                 "uniqueId",
>                 "score",
>                 "_children_:[subquery]",
>                 "uniqueId"
>             ],
>             "origQuery": "false",
>             "q.op": "AND",
>             "_children_.rows": "3",
>             "sort": "score desc,uniqueId desc",
>             "rows": "1",
>             "q": "{!parent which=parent_field:true score=max}({!edismax 
> v=$origQuery})",
>             "qf": "parent_field",
>             "spellcheck": "false",
>             "_children_.q": "{!edismax qf=parentId v=$row.uniqueId}",
>             "_children_.fl": [
>                 "uniqueId",
>                 "score"
>             ],
>             "wt": "json",
>             "facet": "false"
>         }
>     },
>     "response": {
>         "numFound": 1,
>         "start": 0,
>         "maxScore": 0.5,
>         "docs": [
>             {
>                 "uniqueId": "10001677",
>                 "score": 0.5,
>                 "_children_": {
>                     "numFound": 9,
>                     "start": 0,
>                     "docs": [
>                         {
>                             "uniqueId": "100016771",
>                             "score": 0.5
>                         },
>                         {
>                             "uniqueId": "100016772",
>                             "score": 0.5
>                         },
>                         {
>                             "uniqueId": "100016773",
>                             "score": 0.5
>                         }
>                     ]
>                 }
>             }
>         ]
>     }
> }
> {code}
> Here, *_children_* suquery response is as expected (Based on documentation)
> h1. Multi Shard collection(2)
> Request
> {code:java}
> localhost:8983/solr/k_test_2/search?sort=score desc,uniqueId 
> desc&q.op=AND&wt=json&q={!parent which=parent_field:true score=max}({!edismax 
> v=$origQuery})&facet=false&fl=uniqueId&fl=score&fl=_children_:[subquery]&fl=uniqueId&origQuery=false&qf=parent_field&_children_.fl=uniqueId&_children_.fl=score&_children_.rows=3&spellcheck=false&_children_.q={!edismax
>  qf=parentId v=$row.uniqueId}&rows=1
> {code}
> Response
> {code:json}
> {
>     "responseHeader": {
>         "zkConnected": true,
>         "status": 0,
>         "QTime": 11,
>         "params": {
>             "fl": [
>                 "uniqueId",
>                 "score",
>                 "_children_:[subquery]",
>                 "uniqueId"
>             ],
>             "origQuery": "false",
>             "q.op": "AND",
>             "_children_.rows": "3",
>             "sort": "score desc,uniqueId desc",
>             "rows": "1",
>             "q": "{!parent which=parent_field:true score=max}({!edismax 
> v=$origQuery})",
>             "qf": "parent_field",
>             "spellcheck": "false",
>             "_children_.q": "{!edismax qf=parentId v=$row.uniqueId}",
>             "_children_.fl": [
>                 "uniqueId",
>                 "score"
>             ],
>             "wt": "json",
>             "facet": "false"
>         }
>     },
>     "response": {
>         "numFound": 5,
>         "start": 0,
>         "maxScore": 0.5,
>         "docs": [
>             {
>                 "uniqueId": "10006197",
>                 "_children_": [
>                     {
>                         "uniqueId": "100061971",
>                         "score": 0.5
>                     },
>                     {
>                         "uniqueId": "100061972",
>                         "score": 0.5
>                     },
>                     {
>                         "uniqueId": "100061973",
>                         "score": 0.5
>                     }
>                 ],
>                 "score": 0.5
>             }
>         ]
>     }
> }
> {code}
> As you can see, *_children_* subquery response is a list instead of Map



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to