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

Hoss Man commented on SOLR-9286:
--------------------------------

Assertions...

{code}
    // check same results as testMultiValued via RTG (committed doc)
    doc = getRandClient(random()).getById("42", params("fl","val_ss:val_i, 
val2_ss:10, subject"));
    assertEquals(""+doc, 2, doc.size());
    assertEquals(""+doc, 1, doc.getFieldValue("val_ss"));       // LINE 178
    assertEquals(""+doc, 10L, doc.getFieldValue("val2_ss"));
    assertEquals(""+doc, "aaa", doc.getFieldValue("subject"));

{code}

Failure...

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestCloudPseudoReturnFields -Dtests.method=testMultiValuedRTG 
-Dtests.seed=35D25075C14EB91B -Dtests.slow=true -Dtests.locale=uk-UA 
-Dtests.timezone=Asia/Jakarta -Dtests.asserts=true 
-Dtests.file.encoding=US-ASCII
   [junit4] FAILURE 0.07s | TestCloudPseudoReturnFields.testMultiValuedRTG <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: SolrDocument{val_i=1, 
subject=aaa} expected:<1> but was:<null>
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([35D25075C14EB91B:4D9722282B16D95D]:0)
   [junit4]    >        at 
org.apache.solr.cloud.TestCloudPseudoReturnFields.testMultiValuedRTG(TestCloudPseudoReturnFields.java:178)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
{noformat}

> SolrCloud RTG:field aliasing silenly fails (even for committed doc)
> -------------------------------------------------------------------
>
>                 Key: SOLR-9286
>                 URL: https://issues.apache.org/jira/browse/SOLR-9286
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Hoss Man
>
> Found in SOLR-9180 testing.
> when using RTG with field aliasing in SolrCloud, the request can succeed w/o 
> actually performing the field aliasing and/or  ValueSourceAugmenter additions



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to