[
https://issues.apache.org/jira/browse/SOLR-9289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15364910#comment-15364910
]
Hoss Man commented on SOLR-9289:
--------------------------------
test code (note that "42" is a committed doc)...
{code}
// behavior shouldn't matter if we are committed or uncommitted
for (String id : Arrays.asList("42","99")) {
SolrDocument doc = getRandClient(random()).getById(id,
params("fl","[docid]"));
String msg = id + ": fl=[docid] => " + doc;
assertEquals(msg, 1, doc.size());
assertTrue(msg, doc.getFieldValue("[docid]") instanceof Integer);
}
{code}
Current failure...
{noformat}
[junit4] 2> NOTE: reproduce with: ant test
-Dtestcase=TestCloudPseudoReturnFields -Dtests.method=testDocIdAugmenterRTG
-Dtests.seed=89C42C6FF21F186A -Dtests.slow=true -Dtests.locale=sv
-Dtests.timezone=Africa/Dakar -Dtests.asserts=true
-Dtests.file.encoding=US-ASCII
[junit4] FAILURE 0.05s J0 |
TestCloudPseudoReturnFields.testDocIdAugmenterRTG <<<
[junit4] > Throwable #1: java.lang.AssertionError: 42: fl=[docid] =>
SolrDocument{} expected:<1> but was:<0>
[junit4] > at
__randomizedtesting.SeedInfo.seed([89C42C6FF21F186A:1183F970114BC110]:0)
[junit4] > at
org.apache.solr.cloud.TestCloudPseudoReturnFields.testDocIdAugmenterRTG(TestCloudPseudoReturnFields.java:590)
[junit4] > at java.lang.Thread.run(Thread.java:745)
{noformat}
> SolrCloud RTG: fl=[docid] silently ignored for all docs
> -------------------------------------------------------
>
> Key: SOLR-9289
> URL: https://issues.apache.org/jira/browse/SOLR-9289
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Hoss Man
>
> Found in SOLR-9180 testing.
> In SolrCloud mode, the {{\[docid\]}} transformer is completely ignored when
> used in a RTG request (even for commited docs) ... this is inconsistent with
> single node solr behavior.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]